mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
parent
ca1a12898c
commit
3ccd0ef013
@ -171,7 +171,7 @@ class BraviaTVCoordinator(DataUpdateCoordinator[None]):
|
||||
async def async_update_volume(self) -> None:
|
||||
"""Update volume information."""
|
||||
volume_info = await self.client.get_volume_info()
|
||||
if volume_level := volume_info.get("volume"):
|
||||
if (volume_level := volume_info.get("volume")) is not None:
|
||||
self.volume_level = volume_level / 100
|
||||
self.volume_muted = volume_info.get("mute", False)
|
||||
self.volume_target = volume_info.get("target")
|
||||
|
Loading…
x
Reference in New Issue
Block a user