mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Migrate Cast to new entity naming style (#74901)
This commit is contained in:
parent
4a38be2924
commit
c81d63e070
@ -274,6 +274,7 @@ class CastDevice:
|
||||
class CastMediaPlayerEntity(CastDevice, MediaPlayerEntity):
|
||||
"""Representation of a Cast device on the network."""
|
||||
|
||||
_attr_has_entity_name = True
|
||||
_attr_should_poll = False
|
||||
_attr_media_image_remotely_accessible = True
|
||||
_mz_only = False
|
||||
@ -293,7 +294,6 @@ class CastMediaPlayerEntity(CastDevice, MediaPlayerEntity):
|
||||
|
||||
self._cast_view_remove_handler = None
|
||||
self._attr_unique_id = str(cast_info.uuid)
|
||||
self._attr_name = cast_info.friendly_name
|
||||
self._attr_device_info = DeviceInfo(
|
||||
identifiers={(CAST_DOMAIN, str(cast_info.uuid).replace("-", ""))},
|
||||
manufacturer=str(cast_info.cast_info.manufacturer),
|
||||
|
Loading…
x
Reference in New Issue
Block a user