mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Add model ID to Sonos (#125364)
This commit is contained in:
parent
2c0c0b9e21
commit
56b4ddc6b4
@ -85,6 +85,7 @@ class SonosEntity(Entity):
|
|||||||
identifiers={(DOMAIN, self.soco.uid)},
|
identifiers={(DOMAIN, self.soco.uid)},
|
||||||
name=self.speaker.zone_name,
|
name=self.speaker.zone_name,
|
||||||
model=self.speaker.model_name.replace("Sonos ", ""),
|
model=self.speaker.model_name.replace("Sonos ", ""),
|
||||||
|
model_id=self.speaker.model_number,
|
||||||
sw_version=self.speaker.version,
|
sw_version=self.speaker.version,
|
||||||
connections={
|
connections={
|
||||||
(dr.CONNECTION_NETWORK_MAC, self.speaker.mac_address),
|
(dr.CONNECTION_NETWORK_MAC, self.speaker.mac_address),
|
||||||
|
@ -72,6 +72,7 @@ async def test_device_registry(
|
|||||||
)
|
)
|
||||||
assert reg_device is not None
|
assert reg_device is not None
|
||||||
assert reg_device.model == "Model Name"
|
assert reg_device.model == "Model Name"
|
||||||
|
assert reg_device.model_id == "S12"
|
||||||
assert reg_device.sw_version == "13.1"
|
assert reg_device.sw_version == "13.1"
|
||||||
assert reg_device.connections == {
|
assert reg_device.connections == {
|
||||||
(CONNECTION_NETWORK_MAC, "00:11:22:33:44:55"),
|
(CONNECTION_NETWORK_MAC, "00:11:22:33:44:55"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user