1 parent
37706c2731
commit
7f0a50ce31
41 files changed
+76
-72
No files matched your search
@@ -183,7 +183,7 @@ async def async_setup(hass, config):
|
||||
"""Update tokens of the entities."""
|
||||
for entity in component.entities:
|
||||
entity.async_update_token()
|
||||
hass.async_add_job(entity.async_update_ha_state())
|
||||
hass.async_create_task(entity.async_update_ha_state())
|
||||
|
||||
hass.helpers.event.async_track_time_interval(
|
||||
update_tokens, TOKEN_CHANGE_INTERVAL)
|
||||
|
||||
Reference in new issue
Block a user