mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Add suggested area support to Sonos (#46794)
This commit is contained in:
parent
9b69549f73
commit
41332493b5
@ -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…
x
Reference in New Issue
Block a user