Fix implicit-return in kodi (#122914)

This commit is contained in:
epenet 2024-07-31 13:42:07 +02:00 committed by GitHub
parent bf3a2cf393
commit 3bf00822b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):