Skip to content

Commit

Permalink
async_dispatcher_send calls removed from non main loop threads
Browse files Browse the repository at this point in the history
  • Loading branch information
ClusterM committed Jun 7, 2024
1 parent 5b2ac6e commit 206cc3a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion custom_components/skykettle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):

async def poll(now, **kwargs) -> None:
await kettle.update()
await hass.async_add_executor_job(async_dispatcher_send, hass, DISPATCHER_UPDATE)
if hass.data[DOMAIN][DATA_WORKING]:
schedule_poll(timedelta(seconds=entry.data[CONF_SCAN_INTERVAL]))
else:
Expand Down

0 comments on commit 206cc3a

Please sign in to comment.