Skip to content

Commit

Permalink
Bump hahomematic to 2024.8.8 (#699)
Browse files Browse the repository at this point in the history
* Bump hahomematic to 2024.8.8

* Resort translations

* Clear cache on schema migration
  • Loading branch information
SukramJ authored Aug 19, 2024
1 parent 5c69ca4 commit af6015d
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 15 deletions.
7 changes: 5 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# Version 1.65.0 (2024-08-18)
# Version 1.65.0 (2024-08-19)

- Bump hahomematic to 2024.8.7
- Bump hahomematic to 2024.8.8
- Add CED for ELV-SH-WUA / HmIP-WUA
- Refactor get_parameters for unignore_candidates
- Make load only relevant paramset descriptions configurable
- Add UN_IGNORE_WILDCARD to get_parameters
- Refactor folder handling
- Use SELECTORs in config flow
- Make unignore configurable in the UI
- Clear cache on schema migration
- Load al paramset descriptions into cache

# Version 1.64.0 (2024-08-05)

Expand Down
10 changes: 7 additions & 3 deletions custom_components/homematicip_local/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ async def async_unload_entry(hass: HomeAssistant, entry: HomematicConfigEntry) -

async def async_remove_entry(hass: HomeAssistant, entry: HomematicConfigEntry) -> None:
"""Handle removal of an entry."""
storage_folder = get_storage_folder(hass=hass)
cleanup_cache_dirs(instance_name=entry.data["instance_name"], storage_folder=storage_folder)
cleanup_cache_dirs(
instance_name=entry.data["instance_name"], storage_folder=get_storage_folder(hass=hass)
)


async def async_remove_config_entry_device(
Expand Down Expand Up @@ -151,7 +152,10 @@ def update_entity_unique_id(entity_entry: er.RegistryEntry) -> dict[str, str] |
hass.config_entries.async_update_entry(entry, version=3)
if entry.version == 3:
data = dict(entry.data)
data.update({CONF_UN_IGNORE: ""})
data.update({CONF_UN_IGNORE: []})
cleanup_cache_dirs(
instance_name=entry.data["instance_name"], storage_folder=get_storage_folder(hass=hass)
)
hass.config_entries.async_update_entry(entry, version=4, data=data)
_LOGGER.info("Migration to version %s successful", entry.version)
return True
2 changes: 1 addition & 1 deletion custom_components/homematicip_local/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ async def async_step_un_ignore(
data_schema=get_un_ignore_schema(
data=self.data,
all_un_ignore_parameters=self._control_unit.central.get_un_ignore_candidates(
include_master=False
include_master=True
),
),
)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/homematicip_local/control_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _create_central(self) -> CentralUnit:
interface_configs=interface_configs,
start_direct=self._start_direct,
un_ignore_list=self._config_data.get(CONF_UN_IGNORE),
load_all_paramset_descriptions=False,
load_all_paramset_descriptions=True,
).create_central(extended_validation=False)


Expand Down
2 changes: 1 addition & 1 deletion custom_components/homematicip_local/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"iot_class": "local_push",
"issue_tracker": "https://github.com/danielperna84/hahomematic/issues",
"loggers": ["hahomematic"],
"requirements": ["hahomematic==2024.8.7"],
"requirements": ["hahomematic==2024.8.8"],
"ssdp": [
{
"manufacturer": "EQ3",
Expand Down
4 changes: 2 additions & 2 deletions custom_components/homematicip_local/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@
},
"interface": {
"data": {
"advanced_config": "advanced Config",
"bidcos_rf_enabled": "enable Homematic (Bidcos-RF)",
"bidcos_rf_port": "HM-RF Port",
"bidcos_wired_enabled": "enable BidCos-Wired (HM-Wired)",
Expand All @@ -591,8 +592,7 @@
"hmip_rf_port": "HmIP-RF Port",
"virtual_devices_enabled": "enable Groups (Heating-Group)",
"virtual_devices_path": "Groups Path",
"virtual_devices_port": "Groups Port",
"advanced_config": "advanced Config"
"virtual_devices_port": "Groups Port"
},
"description": "Re-Configure the interfaces to CCU"
},
Expand Down
4 changes: 2 additions & 2 deletions custom_components/homematicip_local/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@
},
"interface": {
"data": {
"advanced_config": "erweiterte Konfiguration",
"bidcos_rf_enabled": "aktiviere Homematic (Bidcos-RF)",
"bidcos_rf_port": "HM-RF Port",
"bidcos_wired_enabled": "aktiviere Homematic-Wired (BidCos-Wired)",
Expand All @@ -594,8 +595,7 @@
"hmip_rf_port": "HmIP-RF Port",
"virtual_devices_enabled": "aktiviere Heizgruppen",
"virtual_devices_path": "Gruppen Pfad",
"virtual_devices_port": "Gruppen Port",
"advanced_config": "erweiterte Konfiguration"
"virtual_devices_port": "Gruppen Port"
},
"description": "Neu-Konfiguration der CCU Schnittstellen"
},
Expand Down
4 changes: 2 additions & 2 deletions custom_components/homematicip_local/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@
},
"interface": {
"data": {
"advanced_config": "advanced Config",
"bidcos_rf_enabled": "enable Homematic (Bidcos-RF)",
"bidcos_rf_port": "HM-RF Port",
"bidcos_wired_enabled": "enable BidCos-Wired (HM-Wired)",
Expand All @@ -591,8 +592,7 @@
"hmip_rf_port": "HmIP-RF Port",
"virtual_devices_enabled": "enable Groups (Heating-Group)",
"virtual_devices_path": "Groups Path",
"virtual_devices_port": "Groups Port",
"advanced_config": "advanced Config"
"virtual_devices_port": "Groups Port"
},
"description": "Re-Configure the interfaces to CCU"
},
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-r requirements_test_pre_commit.txt

async-upnp-client==0.40.0
hahomematic==2024.8.7
hahomematic==2024.8.8
homeassistant==2024.8.2
mypy==1.11.1
mypy-dev==1.11.0a9
Expand Down

0 comments on commit af6015d

Please sign in to comment.