set_dps now Dispatches status update to all entities

This commit is contained in:
rospogrigio
2020-09-28 23:48:57 +02:00
committed by rospogrigio
parent deeaf0e9eb
commit 0e79570483
2 changed files with 15 additions and 13 deletions

View File

@@ -92,7 +92,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
"""Set up LocalTuya integration from a config entry."""
unsub_listener = entry.add_update_listener(update_listener)
device = TuyaDevice(entry.data)
device = TuyaDevice(hass, entry.data)
async def update_state(now):
"""Read device status and update platforms."""