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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user