Skip to content

Commit

Permalink
Update lux_helper.py #303
Browse files Browse the repository at this point in the history
  • Loading branch information
BenPru authored Dec 4, 2024
1 parent 7542d0b commit 409ce7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/luxtronik/lux_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit 409ce7e

Please sign in to comment.