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: