mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Add Google Cast groups to device registry (#66805)
This commit is contained in:
parent
f69571f164
commit
31867d54b6
@ -292,7 +292,6 @@ class CastMediaPlayerEntity(CastDevice, MediaPlayerEntity):
|
|||||||
self._cast_view_remove_handler = None
|
self._cast_view_remove_handler = None
|
||||||
self._attr_unique_id = str(cast_info.uuid)
|
self._attr_unique_id = str(cast_info.uuid)
|
||||||
self._attr_name = cast_info.friendly_name
|
self._attr_name = cast_info.friendly_name
|
||||||
if cast_info.cast_info.model_name != "Google Cast Group":
|
|
||||||
self._attr_device_info = DeviceInfo(
|
self._attr_device_info = DeviceInfo(
|
||||||
identifiers={(CAST_DOMAIN, str(cast_info.uuid).replace("-", ""))},
|
identifiers={(CAST_DOMAIN, str(cast_info.uuid).replace("-", ""))},
|
||||||
manufacturer=str(cast_info.cast_info.manufacturer),
|
manufacturer=str(cast_info.cast_info.manufacturer),
|
||||||
|
@ -632,7 +632,7 @@ async def test_entity_availability(hass: HomeAssistant):
|
|||||||
assert state.state == "unavailable"
|
assert state.state == "unavailable"
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("port,entry_type", ((8009, None),))
|
@pytest.mark.parametrize("port,entry_type", ((8009, None), (12345, None)))
|
||||||
async def test_device_registry(hass: HomeAssistant, port, entry_type):
|
async def test_device_registry(hass: HomeAssistant, port, entry_type):
|
||||||
"""Test device registry integration."""
|
"""Test device registry integration."""
|
||||||
entity_id = "media_player.speaker"
|
entity_id = "media_player.speaker"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user