From bc7e50dcc112040c8617d0fb82adabf23e044da1 Mon Sep 17 00:00:00 2001 From: Fabio Pergola Date: Mon, 7 Oct 2024 09:11:48 +0200 Subject: [PATCH] currentVolume.text fix --- 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 5dab9e6..92c9410 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 currentVolume.text is "0": + if currentVolume is None or currentVolume.text is None or currentVolume.text == "0": self._previouse_audio_out_volume = 7 logger.debug("Current volume not found, using 7 as default") else: