Skip to content

Commit

Permalink
fix for mute_audio_output
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed Oct 7, 2024
1 parent dcb38d7 commit dedeeb7
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 "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:
Expand Down

0 comments on commit dedeeb7

Please sign in to comment.