Sonos use common firmware version (#50861)

pull/51008/head
jjlawren 2021-05-23 08:43:49 -05:00 committed by GitHub
parent 44bbd9396d
commit 29205a9239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -147,7 +147,7 @@ class SonosSpeaker:
self.mac_address = speaker_info["mac_address"]
self.model_name = speaker_info["model_name"]
self.version = speaker_info["software_version"]
self.version = speaker_info["display_version"]
self.zone_name = speaker_info["zone_name"]
self.battery_info: dict[str, Any] | None = None

View File

@ -83,6 +83,7 @@ def speaker_info_fixture():
"model_name": "Model Name",
"software_version": "49.2-64250",
"mac_address": "00-11-22-33-44-55",
"display_version": "13.1",
}

View File

@ -63,7 +63,7 @@ async def test_device_registry(hass, config_entry, config, soco):
identifiers={("sonos", "RINCON_test")}
)
assert reg_device.model == "Model Name"
assert reg_device.sw_version == "49.2-64250"
assert reg_device.sw_version == "13.1"
assert reg_device.connections == {(dr.CONNECTION_NETWORK_MAC, "00:11:22:33:44:55")}
assert reg_device.manufacturer == "Sonos"
assert reg_device.suggested_area == "Zone A"