Add binary_sensor for elevator states to hvv_departures (#36822)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Tom SchneiderandMartin Hjelmare authored and GitHub committed 2020-09-22 17:42:50 +02:00
1 parent 0400754270
commit 6e8e4eedb5
4 files changed
+207 -4

No files matched your search

@@ -267,7 +267,7 @@ async def test_options_flow(hass):
)
config_entry.add_to_hass(hass)
with patch(
with patch("homeassistant.components.hvv_departures.PLATFORMS", new=[]), patch(
"homeassistant.components.hvv_departures.hub.GTI.init",
return_value=True,
), patch(
@@ -318,7 +318,7 @@ async def test_options_flow_invalid_auth(hass):
)
config_entry.add_to_hass(hass)
with patch(
with patch("homeassistant.components.hvv_departures.PLATFORMS", new=[]), patch(
"homeassistant.components.hvv_departures.hub.GTI.init", return_value=True
), patch(
"homeassistant.components.hvv_departures.hub.GTI.departureList",
@@ -359,7 +359,7 @@ async def test_options_flow_cannot_connect(hass):
)
config_entry.add_to_hass(hass)
with patch(
with patch("homeassistant.components.hvv_departures.PLATFORMS", new=[]), patch(
"homeassistant.components.hvv_departures.hub.GTI.init", return_value=True
), patch(
"homeassistant.components.hvv_departures.hub.GTI.departureList",