mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix implicit-return in kodi (#122914)
This commit is contained in:
parent
bf3a2cf393
commit
3bf00822b0
@ -529,10 +529,11 @@ class KodiEntity(MediaPlayerEntity):
|
|||||||
return not self._connection.can_subscribe
|
return not self._connection.can_subscribe
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def volume_level(self):
|
def volume_level(self) -> float | None:
|
||||||
"""Volume level of the media player (0..1)."""
|
"""Volume level of the media player (0..1)."""
|
||||||
if "volume" in self._app_properties:
|
if "volume" in self._app_properties:
|
||||||
return int(self._app_properties["volume"]) / 100.0
|
return int(self._app_properties["volume"]) / 100.0
|
||||||
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_volume_muted(self):
|
def is_volume_muted(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user