From dedeeb7d9042aad3a941fb292854fc927ea6aefa Mon Sep 17 00:00:00 2001 From: Fabio Pergola Date: Mon, 7 Oct 2024 09:05:21 +0200 Subject: [PATCH] fix for mute_audio_output --- hikvision-doorbell/src/doorbell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hikvision-doorbell/src/doorbell.py b/hikvision-doorbell/src/doorbell.py index 1710f8b..5dab9e6 100644 --- a/hikvision-doorbell/src/doorbell.py +++ b/hikvision-doorbell/src/doorbell.py @@ -384,7 +384,7 @@ def mute_audio_output(self): logger.debug("Current talk volume found: {}", talkVolume) currentVolume = current_settings.find('.//{*}volume') - if currentVolume is None or currentVolume.text is None or "0": + if currentVolume is None or currentVolume.text is None or currentVolume.text is "0": self._previouse_audio_out_volume = 7 logger.debug("Current volume not found, using 7 as default") else: