From 421b5b46e5e01da0d81f9ba1f666274fb820a7e0 Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Mon, 25 Nov 2024 21:03:41 +0100 Subject: [PATCH] fix mypy --- reolink_aio/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reolink_aio/api.py b/reolink_aio/api.py index 5d0bda8..a86bf73 100644 --- a/reolink_aio/api.py +++ b/reolink_aio/api.py @@ -981,7 +981,7 @@ def bit_rate(self, channel: int, stream: str | None = None) -> int | None: def bit_rate_list(self, channel: int, stream: str | None = None) -> list[int]: if channel not in self._enc_range: - return None + return [] if stream is None: stream = "main" @@ -997,7 +997,7 @@ def frame_rate(self, channel: int, stream: str | None = None) -> int | None: def frame_rate_list(self, channel: int, stream: str | None = None) -> list[int]: if channel not in self._enc_range: - return None + return [] if stream is None: stream = "main"