mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Return 0 instead of None (#23261)
This commit is contained in:
parent
1e0bc97f56
commit
e2ed2ecdc0
@ -672,7 +672,7 @@ class PlexClient(MediaPlayerDevice):
|
||||
def supported_features(self):
|
||||
"""Flag media player features that are supported."""
|
||||
if not self._is_player_active:
|
||||
return None
|
||||
return 0
|
||||
|
||||
# force show all controls
|
||||
if self.config.get(CONF_SHOW_ALL_CONTROLS):
|
||||
@ -683,7 +683,7 @@ class PlexClient(MediaPlayerDevice):
|
||||
|
||||
# only show controls when we know what device is connecting
|
||||
if not self._make:
|
||||
return None
|
||||
return 0
|
||||
# no mute support
|
||||
if self.make.lower() == "shield android tv":
|
||||
_LOGGER.debug(
|
||||
@ -708,7 +708,7 @@ class PlexClient(MediaPlayerDevice):
|
||||
SUPPORT_VOLUME_SET | SUPPORT_PLAY |
|
||||
SUPPORT_TURN_OFF | SUPPORT_VOLUME_MUTE)
|
||||
|
||||
return None
|
||||
return 0
|
||||
|
||||
def set_volume_level(self, volume):
|
||||
"""Set volume level, range 0..1."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user