From 8c7e24a8a95ef81b0b871b2e3829ad421b3d76d4 Mon Sep 17 00:00:00 2001 From: Guido Schmitz Date: Thu, 14 Sep 2023 08:27:26 +0200 Subject: [PATCH] Increase timeout of async_check_firmware_available (#146) --- devolo_plc_api/device_api/deviceapi.py | 2 +- docs/CHANGELOG.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/devolo_plc_api/device_api/deviceapi.py b/devolo_plc_api/device_api/deviceapi.py index aa1db12..7a2aedd 100644 --- a/devolo_plc_api/device_api/deviceapi.py +++ b/devolo_plc_api/device_api/deviceapi.py @@ -208,7 +208,7 @@ async def async_check_firmware_available(self) -> UpdateFirmwareCheck: """ self._logger.debug("Checking for new firmware.") update_firmware_check = UpdateFirmwareCheck() - response = await self._async_get("UpdateFirmwareCheck") + response = await self._async_get("UpdateFirmwareCheck", timeout=30.0) update_firmware_check.ParseFromString(await response.aread()) return update_firmware_check diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index e676898..3d5be8f 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.4.1] - 2023/09/14 + +### Fixed + +- Increase timeout of async_check_firmware_available to handle unknown errors gracefully + ## [v1.4.0] - 2023/07/26 ### Added