Cleanup some async stuff (#6127)
* Cleanup some async stuff * change to schedule_update_ha_state() * fix media player * fix zigbee
This commit is contained in:
parent
14cf5b884b
commit
1d7ab0fa95
8 changed files with 9 additions and 8 deletions
|
@ -307,7 +307,7 @@ class ZigBeeDigitalIn(Entity):
|
|||
subscribe(hass, handle_frame)
|
||||
|
||||
# Get initial state
|
||||
hass.add_job(self.async_update_ha_state, True)
|
||||
self.schedule_update_ha_state(True)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue