Skip to content

Commit

Permalink
when muting twice, use a default 7 to unmute
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed Jul 31, 2024
1 parent 6277a91 commit 559b1fc
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 @@ -383,7 +383,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:
if currentVolume is None or currentVolume.text is None or "0":
self._previouse_audio_out_volume = 7
logger.debug("Current volume not found, using 7 as default")
else:
Expand Down

0 comments on commit 559b1fc

Please sign in to comment.