From 390fee8773131828b599388da4c12cd3e0a15b8c Mon Sep 17 00:00:00 2001 From: mrlt8 <67088095+mrlt8@users.noreply.github.com> Date: Sun, 14 Jul 2024 07:25:15 -0700 Subject: [PATCH] Fix typo when setting bitrate/resolution #1294 --- README.md | 3 ++- app/wyzecam/iotc.py | 7 ++++++- home_assistant/CHANGELOG.md | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 362e9da2..c2d41297 100644 --- a/README.md +++ b/README.md @@ -59,8 +59,9 @@ You can then use the web interface at `http://localhost:5000` where localhost is See [basic usage](#basic-usage) for additional information or visit the [wiki page](https://github.com/mrlt8/docker-wyze-bridge/wiki/Home-Assistant) for additional information on using the bridge as a Home Assistant Add-on. -## What's Changed in v2.9.11 +## What's Changed in v2.9.11/12 +- FIX: Fix regression introduced in v2.9.11 which caused connection issues for WYZEDB3, WVOD1, HL_WCO2, and WYZEC1 (#1294) - FIX: Update stream state on startup to prevent multiple connections. - FIX: No audio on HW and QSV builds. (#1281) - Use k10056 if supported and not setting fps when updating resolution and bitrate (#1194) diff --git a/app/wyzecam/iotc.py b/app/wyzecam/iotc.py index 10c9c056..aa3e31a4 100644 --- a/app/wyzecam/iotc.py +++ b/app/wyzecam/iotc.py @@ -535,7 +535,12 @@ def sync_camera_time(self, wait: bool = False): self.frame_ts = time.time() def set_resolving_bit(self, fps: int = 0): - if fps or self.camera.model_name in {"WYZEDB3", "WVOD1", "HL_WCO2", "WYZEC1"}: + if fps or self.camera.product_model in { + "WYZEDB3", + "WVOD1", + "HL_WCO2", + "WYZEC1", + }: return K10052DBSetResolvingBit( self.preferred_frame_size, self.preferred_bitrate, fps ) diff --git a/home_assistant/CHANGELOG.md b/home_assistant/CHANGELOG.md index 94401bc0..812403cc 100644 --- a/home_assistant/CHANGELOG.md +++ b/home_assistant/CHANGELOG.md @@ -1,5 +1,6 @@ -## What's Changed in v2.9.11 +## What's Changed in v2.9.11/12 +- FIX: Fix regression introduced in v2.9.11 which caused connection issues for WYZEDB3, WVOD1, HL_WCO2, and WYZEC1 (#1294) - FIX: Update stream state on startup to prevent multiple connections. - FIX: No audio on HW and QSV builds. (#1281) - Use k10056 if supported and not setting fps when updating resolution and bitrate (#1194)