Add model ID to Sonos (#125364)

This commit is contained in:
Paulus Schoutsen 2024-09-05 16:52:17 -04:00 committed by GitHub
parent 2c0c0b9e21
commit 56b4ddc6b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,7 @@ class SonosEntity(Entity):
identifiers={(DOMAIN, self.soco.uid)},
name=self.speaker.zone_name,
model=self.speaker.model_name.replace("Sonos ", ""),
model_id=self.speaker.model_number,
sw_version=self.speaker.version,
connections={
(dr.CONNECTION_NETWORK_MAC, self.speaker.mac_address),

View File

@ -72,6 +72,7 @@ async def test_device_registry(
)
assert reg_device is not None
assert reg_device.model == "Model Name"
assert reg_device.model_id == "S12"
assert reg_device.sw_version == "13.1"
assert reg_device.connections == {
(CONNECTION_NETWORK_MAC, "00:11:22:33:44:55"),