Fix entity name for iBeacon and Roku (#95574)

* Fix entity nmae for iBeacon and Roku

* Roku remote too
This commit is contained in:
Paulus Schoutsen
2023-06-29 13:43:13 -04:00
committed by GitHub
parent 7252c33df8
commit decb1a3118
3 changed files with 5 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ async def async_setup_entry(
class IBeaconTrackerEntity(IBeaconEntity, BaseTrackerEntity):
"""An iBeacon Tracker entity."""
_attr_name = None
def __init__(
self,
coordinator: IBeaconCoordinator,

View File

@@ -108,6 +108,7 @@ async def async_setup_entry(
class RokuMediaPlayer(RokuEntity, MediaPlayerEntity):
"""Representation of a Roku media player on the network."""
_attr_name = None
_attr_supported_features = (
MediaPlayerEntityFeature.PREVIOUS_TRACK
| MediaPlayerEntityFeature.NEXT_TRACK

View File

@@ -37,6 +37,8 @@ async def async_setup_entry(
class RokuRemote(RokuEntity, RemoteEntity):
"""Device that sends commands to an Roku."""
_attr_name = None
@property
def is_on(self) -> bool:
"""Return true if device is on."""