Add suggested area support to Sonos (#46794)

This commit is contained in:
J. Nick Koston 2021-02-19 21:28:52 -10:00 committed by GitHub
parent 9b69549f73
commit 41332493b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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"