Have template platforms never leave the event loop
This commit is contained in:
1 parent
3e24a35c1e
commit
4198c42736
6 files changed
+56
-17
No files matched your search
@@ -119,7 +119,7 @@ class TestBinarySensorTemplate(unittest.TestCase):
|
||||
vs.update_ha_state()
|
||||
self.hass.block_till_done()
|
||||
|
||||
with mock.patch.object(vs, 'update') as mock_update:
|
||||
with mock.patch.object(vs, 'async_update') as mock_update:
|
||||
self.hass.bus.fire(EVENT_STATE_CHANGED)
|
||||
self.hass.block_till_done()
|
||||
assert mock_update.call_count == 1
|
||||
|
||||
Reference in new issue
Block a user