Fix enigma2 mute (#121928)

This commit is contained in:
Tomasz Gorochowik 2024-07-15 09:09:19 +02:00 committed by Franck Nijhof
parent f9b359ae30
commit bf89eaae25
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

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."""