Skip to content

Commit

Permalink
Fix wrong channel used for include check of DingDongOpt
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed Jan 7, 2025
1 parent febac35 commit 2e9bc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reolink_aio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2150,7 +2150,7 @@ def inc_host_wake(cmd: str) -> bool:
# chime states
for chime_id, chime in self._chime_list.items():
chime_ch = chime.channel
if inc_cmd("DingDongOpt", channel) and chime.online:
if inc_cmd("DingDongOpt", chime_ch) and chime.online:
body.append({"cmd": "DingDongOpt", "action": 0, "param": {"DingDong": {"channel": chime_ch, "option": 2, "id": chime_id}}})
channels.append(chime_ch)
chime_ids.append(chime_id)
Expand Down

0 comments on commit 2e9bc05

Please sign in to comment.