Skip to content

Commit

Permalink
✅ [2024-04-24] 添加测试代码: 门锁状态从 data 改为自定义 attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
MapleEve committed Apr 24, 2024
1 parent f2a5df6 commit 4af2e15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/lifesmart/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 4af2e15

Please sign in to comment.