Skip to content

Commit

Permalink
Optimize logout after privacy mode enable in get_host_data
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed Jan 18, 2025
1 parent 0c3b3d5 commit 4345843
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions reolink_aio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2465,10 +2465,7 @@ def check_command_exists(cmd: str) -> int:
await self.get_rtsp_stream_source(channel, "main", check)

if privacy_mode_enabled:
try:
await self.logout()
except ReolinkError:
pass
await self.expire_session(unsubscribe=False)
await self.baichuan.set_privacy_mode(0, True)

self._startup = False
Expand Down

0 comments on commit 4345843

Please sign in to comment.