mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 10:47:51 +00:00
Fix entity name for iBeacon and Roku (#95574)
* Fix entity nmae for iBeacon and Roku * Roku remote too
This commit is contained in:
parent
7252c33df8
commit
decb1a3118
@ -48,6 +48,8 @@ async def async_setup_entry(
|
|||||||
class IBeaconTrackerEntity(IBeaconEntity, BaseTrackerEntity):
|
class IBeaconTrackerEntity(IBeaconEntity, BaseTrackerEntity):
|
||||||
"""An iBeacon Tracker entity."""
|
"""An iBeacon Tracker entity."""
|
||||||
|
|
||||||
|
_attr_name = None
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
coordinator: IBeaconCoordinator,
|
coordinator: IBeaconCoordinator,
|
||||||
|
@ -108,6 +108,7 @@ async def async_setup_entry(
|
|||||||
class RokuMediaPlayer(RokuEntity, MediaPlayerEntity):
|
class RokuMediaPlayer(RokuEntity, MediaPlayerEntity):
|
||||||
"""Representation of a Roku media player on the network."""
|
"""Representation of a Roku media player on the network."""
|
||||||
|
|
||||||
|
_attr_name = None
|
||||||
_attr_supported_features = (
|
_attr_supported_features = (
|
||||||
MediaPlayerEntityFeature.PREVIOUS_TRACK
|
MediaPlayerEntityFeature.PREVIOUS_TRACK
|
||||||
| MediaPlayerEntityFeature.NEXT_TRACK
|
| MediaPlayerEntityFeature.NEXT_TRACK
|
||||||
|
@ -37,6 +37,8 @@ async def async_setup_entry(
|
|||||||
class RokuRemote(RokuEntity, RemoteEntity):
|
class RokuRemote(RokuEntity, RemoteEntity):
|
||||||
"""Device that sends commands to an Roku."""
|
"""Device that sends commands to an Roku."""
|
||||||
|
|
||||||
|
_attr_name = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_on(self) -> bool:
|
def is_on(self) -> bool:
|
||||||
"""Return true if device is on."""
|
"""Return true if device is on."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user