From 409ce7e7613d2b1af3c28733ea4ad095d8385ca8 Mon Sep 17 00:00:00 2001 From: BenPru <32298537+BenPru@users.noreply.github.com> Date: Wed, 4 Dec 2024 18:38:23 +0100 Subject: [PATCH] Update lux_helper.py #303 --- custom_components/luxtronik/lux_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/luxtronik/lux_helper.py b/custom_components/luxtronik/lux_helper.py index ea36081..5aa892d 100644 --- a/custom_components/luxtronik/lux_helper.py +++ b/custom_components/luxtronik/lux_helper.py @@ -127,12 +127,12 @@ def get_firmware_download_id(installed_version: str | None) -> int | None: return None -def get_manufacturer_firmware_url_by_model(model: str) -> str: +def get_manufacturer_firmware_url_by_model(model: str, default_id: int) -> str: """Return the manufacturer firmware download url.""" layout_id = 0 if model is None: - layout_id = 0 + layout_id = default_id elif model.startswith(tuple(LUX_MODELS_ALPHA_INNOTEC)): layout_id = 1 elif model.startswith(tuple(LUX_MODELS_NOVELAN)):