From 4af2e152e892e73d0d1564d0018afa7a25897024 Mon Sep 17 00:00:00 2001 From: Maple Gao Date: Wed, 24 Apr 2024 21:10:53 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20[2024-04-24]=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81:=20=E9=97=A8=E9=94=81?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=BB=8E=20data=20=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=20attrs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/lifesmart/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/lifesmart/__init__.py b/custom_components/lifesmart/__init__.py index 58fa2ca..e461154 100644 --- a/custom_components/lifesmart/__init__.py +++ b/custom_components/lifesmart/__init__.py @@ -295,10 +295,10 @@ async def data_update_handler(msg): ).strftime("%Y-%m-%d %H:%M:%S"), } - hass.states.set(entity_id, nstat, attrs) + #hass.states.set(entity_id, nstat, attrs) dispatcher_send( - hass, f"{LIFESMART_SIGNAL_UPDATE_ENTITY}_{entity_id}", data + hass, f"{LIFESMART_SIGNAL_UPDATE_ENTITY}_{entity_id}", attrs ) _LOGGER.debug("设备状态更新已推送 %s - 设备编号:%s -门锁更新数据:%s ", str(LIFESMART_SIGNAL_UPDATE_ENTITY),