Return None as BraviaTV media_player/remote entity name (#94804)

This commit is contained in:
Maciej Bieniek 2023-06-19 10:04:50 +00:00 committed by GitHub
parent 546139e491
commit c7e460ccab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@ async def async_setup_entry(
class BraviaTVMediaPlayer(BraviaTVEntity, MediaPlayerEntity):
"""Representation of a Bravia TV Media Player."""
_attr_name = None
_attr_assumed_state = True
_attr_device_class = MediaPlayerDeviceClass.TV
_attr_supported_features = (

View File

@ -30,6 +30,8 @@ async def async_setup_entry(
class BraviaTVRemote(BraviaTVEntity, RemoteEntity):
"""Representation of a Bravia TV Remote."""
_attr_name = None
@property
def is_on(self) -> bool:
"""Return true if device is on."""