Skip to content

Commit

Permalink
Recognize Reolink Home Hub (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed May 12, 2024
1 parent 37557d5 commit 4d7236d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reolink_aio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ def doorbell_button_sound(self, channel: int) -> bool:

def quick_reply_dict(self, channel: int) -> dict[int, str]:
if channel not in self._audio_file_list:
return {}
return {-1: "off"}

audio_dict = {-1: "off"}
for audio_file in self._audio_file_list[channel]["AudioFileList"]:
Expand Down Expand Up @@ -2470,8 +2470,8 @@ def map_host_json_response(self, json_data: typings.reolink_json):

if data["cmd"] == "GetDevInfo":
dev_info = data["value"]["DevInfo"]
self._is_nvr = dev_info.get("exactType", "IPC") in ["NVR", "WIFI_NVR"]
self._is_nvr = self._is_nvr or dev_info.get("type", "IPC") == "NVR"
self._is_nvr = dev_info.get("exactType", "IPC") in ["NVR", "WIFI_NVR", "HOMEHUB"]
self._is_nvr = self._is_nvr or dev_info.get("type", "IPC") in ["NVR", "WIFI_NVR", "HOMEHUB"]
self._nvr_serial = dev_info["serial"]
self._nvr_name = dev_info["name"]
self._nvr_model = dev_info["model"]
Expand Down

0 comments on commit 4d7236d

Please sign in to comment.