diff --git a/reolink_aio/api.py b/reolink_aio/api.py index 629c5c8..b63ec43 100644 --- a/reolink_aio/api.py +++ b/reolink_aio/api.py @@ -1056,10 +1056,13 @@ def hub_visitor_tone_id(self, channel: int) -> int: return self._hub_audio_settings[channel]["AudioCfg"]["ringToneId"] def quick_reply_dict(self, channel: int) -> dict[int, str]: + audio_dict = {-1: "off"} if channel not in self._audio_file_list: - return {-1: "off"} + return audio_dict + + if self._audio_file_list[channel]["AudioFileList"] is None: + return audio_dict - audio_dict = {-1: "off"} for audio_file in self._audio_file_list[channel]["AudioFileList"]: audio_dict[audio_file["id"]] = audio_file["fileName"] return audio_dict