Cleanup async handling (#6388)
* Cleanups unneeded blocks * Cleanup bootstrap * dedicated update_ha_state * Fix imap_email_content * fx tests * Fix lint & spell
This commit is contained in:
1 parent
3044aecbe9
commit
8232f1ef65
30 files changed
+124
-108
No files matched your search
@@ -103,7 +103,8 @@ class TestComponentsCore(unittest.TestCase):
|
||||
ent = entity.Entity()
|
||||
ent.entity_id = 'test.entity'
|
||||
ent.hass = self.hass
|
||||
ent.update_ha_state()
|
||||
ent.schedule_update_ha_state()
|
||||
self.hass.block_till_done()
|
||||
|
||||
state = self.hass.states.get('test.entity')
|
||||
assert state is not None
|
||||
@@ -130,7 +131,8 @@ class TestComponentsCore(unittest.TestCase):
|
||||
assert 10 == self.hass.config.latitude
|
||||
assert 20 == self.hass.config.longitude
|
||||
|
||||
ent.update_ha_state()
|
||||
ent.schedule_update_ha_state()
|
||||
self.hass.block_till_done()
|
||||
|
||||
state = self.hass.states.get('test.entity')
|
||||
assert state is not None
|
||||
|
||||
Reference in new issue
Block a user