Skip to content

Commit

Permalink
currentVolume.text fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed Oct 7, 2024
1 parent dedeeb7 commit bc7e50d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hikvision-doorbell/src/doorbell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bc7e50d

Please sign in to comment.