mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Migrate AndroidTV to has entity name (#96572)
This commit is contained in:
parent
69bcba7ef5
commit
1097bde71b
@ -210,6 +210,8 @@ class ADBDevice(MediaPlayerEntity):
|
|||||||
"""Representation of an Android or Fire TV device."""
|
"""Representation of an Android or Fire TV device."""
|
||||||
|
|
||||||
_attr_device_class = MediaPlayerDeviceClass.TV
|
_attr_device_class = MediaPlayerDeviceClass.TV
|
||||||
|
_attr_has_entity_name = True
|
||||||
|
_attr_name = None
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
@ -222,7 +224,6 @@ class ADBDevice(MediaPlayerEntity):
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Initialize the Android / Fire TV device."""
|
"""Initialize the Android / Fire TV device."""
|
||||||
self.aftv = aftv
|
self.aftv = aftv
|
||||||
self._attr_name = name
|
|
||||||
self._attr_unique_id = unique_id
|
self._attr_unique_id = unique_id
|
||||||
self._entry_id = entry_id
|
self._entry_id = entry_id
|
||||||
self._entry_data = entry_data
|
self._entry_data = entry_data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user