Add suggested area support to Sonos (#46794)
This commit is contained in:
parent
9b69549f73
commit
41332493b5
2 changed files with 2 additions and 0 deletions
|
@ -589,6 +589,7 @@ class SonosEntity(MediaPlayerEntity):
|
|||
"sw_version": self._sw_version,
|
||||
"connections": {(dr.CONNECTION_NETWORK_MAC, self._mac_address)},
|
||||
"manufacturer": "Sonos",
|
||||
"suggested_area": self._name,
|
||||
}
|
||||
|
||||
@property
|
||||
|
|
|
@ -56,4 +56,5 @@ async def test_device_registry(hass, config_entry, config, soco):
|
|||
assert reg_device.sw_version == "49.2-64250"
|
||||
assert reg_device.connections == {("mac", "00:11:22:33:44:55")}
|
||||
assert reg_device.manufacturer == "Sonos"
|
||||
assert reg_device.suggested_area == "Zone A"
|
||||
assert reg_device.name == "Zone A"
|
||||
|
|
Loading…
Add table
Reference in a new issue