Fixed test (#23343)

pull/23355/head
Penny Wood 2019-04-25 00:55:37 +08:00 committed by Paulus Schoutsen
parent f4e7364651
commit e850ccb82c
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ async def test_sensor(hass, create_registrations, webhook_client): # noqa: F401
json = await reg_resp.json()
assert json == {'success': True}
await hass.async_block_till_done()
entity = hass.states.get('sensor.battery_state')
assert entity is not None