Switch to asyncio.wait for slow update warning implementation (#41184)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-10-05 15:28:15 +02:00
1 parent dde465da48
commit f50976a0b3
9 files changed
+62 -45

No files matched your search

@@ -45,6 +45,7 @@ async def test_update_failure(hass, config_entry, aioclient_mock):
"""Test that the coordinator handles a bad response."""
await setup_integration(hass, config_entry, aioclient_mock, bad_reading=True)
await async_setup_component(hass, HA_DOMAIN, {})
await hass.async_block_till_done()
with patch("smart_meter_texas.Meter.read_meter") as updater:
await hass.services.async_call(
HA_DOMAIN,