1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add entity services to the Flo integration (#38287)

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
David F. Mulcahey
2020-08-31 09:37:45 -04:00
committed by GitHub
parent 4d637e5f30
commit 7062838940
17 changed files with 237 additions and 22 deletions

View File

@@ -15,7 +15,7 @@ async def test_valve_switches(hass, config_entry, aioclient_mock_fixture):
)
await hass.async_block_till_done()
assert len(hass.data[FLO_DOMAIN]["devices"]) == 1
assert len(hass.data[FLO_DOMAIN][config_entry.entry_id]["devices"]) == 1
entity_id = "switch.shutoff_valve"
assert hass.states.get(entity_id).state == STATE_ON