Add water shortage binary sensor (#100662)

This commit is contained in:
Luke Lashley
2023-09-21 15:43:17 +02:00
committed by GitHub
parent a08b74c550
commit 6e0ab35f85
3 changed files with 15 additions and 1 deletions
@@ -9,9 +9,12 @@ async def test_binary_sensors(
hass: HomeAssistant, setup_entry: MockConfigEntry
) -> None:
"""Test binary sensors and check test values are correctly set."""
assert len(hass.states.async_all("binary_sensor")) == 4
assert len(hass.states.async_all("binary_sensor")) == 6
assert hass.states.get("binary_sensor.roborock_s7_maxv_mop_attached").state == "on"
assert (
hass.states.get("binary_sensor.roborock_s7_maxv_water_box_attached").state
== "on"
)
assert (
hass.states.get("binary_sensor.roborock_s7_maxv_water_shortage").state == "off"
)