From fdcee73db285f473de42739f3219fccc6027bc9d Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Mon, 25 Nov 2024 13:11:11 +0100 Subject: [PATCH] Check for empty UID ("") --- reolink_aio/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reolink_aio/api.py b/reolink_aio/api.py index 362996e..a7e7e86 100644 --- a/reolink_aio/api.py +++ b/reolink_aio/api.py @@ -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)