Skip to content

Commit

Permalink
Check for empty UID ("")
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed Nov 25, 2024
1 parent 4350d4d commit fdcee73
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 @@ -3371,7 +3371,7 @@ def map_host_json_response(self, json_data: typings.reolink_json) -> None:
self._channel_models[cur_channel] = ch_info["typeInfo"]
self._is_doorbell[cur_channel] = "Doorbell" in self._channel_models[cur_channel]

if "uid" in ch_info:
if "uid" in ch_info and ch_info["uid"] != "":
self._channel_uids[cur_channel] = ch_info["uid"]

self._channels.append(cur_channel)
Expand Down

0 comments on commit fdcee73

Please sign in to comment.