Fix enigma2 mute (#121928)

This commit is contained in:
Tomasz Gorochowik 2024-07-15 09:09:19 +02:00 committed by GitHub
parent 3b95e88ff7
commit ef7a84d3f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,7 +199,8 @@ class Enigma2Device(MediaPlayerEntity):
async def async_mute_volume(self, mute: bool) -> None:
"""Mute or unmute."""
await self._device.toggle_mute()
if mute != self._device.status.muted:
await self._device.toggle_mute()
async def async_select_source(self, source: str) -> None:
"""Select input source."""