Add UPNP device connection for Sonos (#56702)
This commit is contained in:
parent
70cc6295b5
commit
805e73f78c
4 changed files with 10 additions and 2 deletions
|
@ -160,6 +160,7 @@ def speaker_info_fixture():
|
|||
"""Create speaker_info fixture."""
|
||||
return {
|
||||
"zone_name": "Zone A",
|
||||
"uid": "RINCON_test",
|
||||
"model_name": "Model Name",
|
||||
"software_version": "49.2-64250",
|
||||
"mac_address": "00-11-22-33-44-55",
|
||||
|
|
|
@ -77,7 +77,10 @@ async def test_device_registry(hass, config_entry, config, soco):
|
|||
)
|
||||
assert reg_device.model == "Model Name"
|
||||
assert reg_device.sw_version == "13.1"
|
||||
assert reg_device.connections == {(dr.CONNECTION_NETWORK_MAC, "00:11:22:33:44:55")}
|
||||
assert reg_device.connections == {
|
||||
(dr.CONNECTION_NETWORK_MAC, "00:11:22:33:44:55"),
|
||||
(dr.CONNECTION_UPNP, "uuid:RINCON_test"),
|
||||
}
|
||||
assert reg_device.manufacturer == "Sonos"
|
||||
assert reg_device.suggested_area == "Zone A"
|
||||
assert reg_device.name == "Zone A"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue