Enforce MediaPlayerEntityFeature (#82462)
This commit is contained in:
parent
a225fc456f
commit
6f05a74686
11 changed files with 26 additions and 24 deletions
|
@ -80,9 +80,9 @@ class HomeKitTelevision(HomeKitEntity, MediaPlayerEntity):
|
|||
]
|
||||
|
||||
@property
|
||||
def supported_features(self) -> MediaPlayerEntityFeature | int:
|
||||
def supported_features(self) -> MediaPlayerEntityFeature:
|
||||
"""Flag media player features that are supported."""
|
||||
features = 0
|
||||
features = MediaPlayerEntityFeature(0)
|
||||
|
||||
if self.service.has(CharacteristicsTypes.ACTIVE_IDENTIFIER):
|
||||
features |= MediaPlayerEntityFeature.SELECT_SOURCE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue