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

Add support for Sonos microphone binary_sensor (#63097)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
jjlawren
2022-01-04 11:45:40 -06:00
committed by GitHub
parent ec75b0caf0
commit 8a8ffa1c08
5 changed files with 93 additions and 31 deletions

View File

@@ -222,11 +222,12 @@ def battery_info_fixture():
}
@pytest.fixture(name="battery_event")
def battery_event_fixture(soco):
"""Create battery_event fixture."""
@pytest.fixture(name="device_properties_event")
def device_properties_event_fixture(soco):
"""Create device_properties_event fixture."""
variables = {
"zone_name": "Zone A",
"mic_enabled": "1",
"more_info": "BattChg:NOT_CHARGING,RawBattPct:100,BattPct:100,BattTmp:25",
}
return SonosMockEvent(soco, soco.deviceProperties, variables)