mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +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
|
||||
|
||||
@property
|
||||
def volume_level(self):
|
||||
def volume_level(self) -> float | None:
|
||||
"""Volume level of the media player (0..1)."""
|
||||
if "volume" in self._app_properties:
|
||||
return int(self._app_properties["volume"]) / 100.0
|
||||
return None
|
||||
|
||||
@property
|
||||
def is_volume_muted(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user