diff --git a/custom_components/luxtronik/base.py b/custom_components/luxtronik/base.py index 6d4ce74..e0cb5bf 100644 --- a/custom_components/luxtronik/base.py +++ b/custom_components/luxtronik/base.py @@ -33,7 +33,7 @@ # endregion Imports -class LuxtronikEntity(CoordinatorEntity[LuxtronikCoordinator], RestoreSensor): +class LuxtronikEntity(CoordinatorEntity[LuxtronikCoordinator], RestoreEntity): """Luxtronik base device.""" entity_description: LuxtronikEntityDescription diff --git a/custom_components/luxtronik/const.py b/custom_components/luxtronik/const.py index ed88aa5..5f166e7 100644 --- a/custom_components/luxtronik/const.py +++ b/custom_components/luxtronik/const.py @@ -86,14 +86,13 @@ class FirmwareVersionMinor(Enum): DOWNLOAD_PORTAL_URL: Final = ( "https://www.heatpump24.com/software/fetchSoftware.php?softwareID=" ) +FIRMWARE_UPDATE_MANUAL_EN = "https://www.alpha-innotec.com/en/services/customer-support/software-center" +FIRMWARE_UPDATE_MANUAL_DE = "https://www.alpha-innotec.com/de/services/kundendienst/software-center" # endregion Constants Main # region Conf LANG_EN: Final = "en" LANG_DE: Final = "de" -LANG_DEFAULT: Final = LANG_EN -LANGUAGES: Final = Enum("en", "de") -LANGUAGES_SENSOR_NAMES: Final = [LANG_EN, LANG_DE] PRESET_SECOND_HEATSOURCE: Final = "second_heatsource" diff --git a/custom_components/luxtronik/manifest.json b/custom_components/luxtronik/manifest.json index ada0f6b..9088768 100755 --- a/custom_components/luxtronik/manifest.json +++ b/custom_components/luxtronik/manifest.json @@ -9,7 +9,7 @@ "after_dependencies": [], "codeowners": ["@BenPru"], "iot_class": "local_polling", - "version": "2023.10.27", + "version": "2023.10.28", "homeassistant": "2023.1.0", "dhcp": [ { "macaddress": "000E8C*" }, diff --git a/custom_components/luxtronik/update.py b/custom_components/luxtronik/update.py index 49b4793..9ea0090 100644 --- a/custom_components/luxtronik/update.py +++ b/custom_components/luxtronik/update.py @@ -27,6 +27,9 @@ CONF_HA_SENSOR_PREFIX, DOMAIN, DOWNLOAD_PORTAL_URL, + FIRMWARE_UPDATE_MANUAL_DE, + FIRMWARE_UPDATE_MANUAL_EN, + LANG_DE, LOGGER, DeviceKey, LuxCalculation, @@ -113,12 +116,18 @@ def release_notes(self) -> str | None: release_url = get_manufacturer_firmware_url_by_model(self.coordinator.model) download_id = get_firmware_download_id(self.installed_version) download_url = f"{DOWNLOAD_PORTAL_URL}{download_id}" - if self.state: - upgrade_text = f"For your {self.coordinator.manufacturer} {self.coordinator.model} (Download ID {download_id}) is Firmware Version {self.__firmware_version_available} available.

" + manual_url = ( + FIRMWARE_UPDATE_MANUAL_DE + if self.hass.config.language == LANG_DE + else FIRMWARE_UPDATE_MANUAL_EN + ) return ( - f'{upgrade_text}Firmware Download Portal ' - + f'Direct Download

' - + "alpha innotec doesn't provide a changelog.
Please contact support for more information." + f'For your ' + f"{self.coordinator.manufacturer} {self.coordinator.model} (Download ID {download_id}) is " + f'Firmware Version {self.__firmware_version_available} available.
' + f'Firmware Update Instructions

' + "The Install-Button downside has no function. It is only needed to notify in Home Assistant.

" + "alpha innotec doesn't provide a changelog.
Please contact support for more information." ) @Throttle(MIN_TIME_BETWEEN_UPDATES)