diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dcfbae..95b597b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # GE Home Appliances (SmartHQ) Changelog +## 0.6.13 + +- Bugfix: Deprecations [#290] [#297] + ## 0.6.12 - Bugfix: Deprecations [#271] diff --git a/custom_components/ge_home/manifest.json b/custom_components/ge_home/manifest.json index 6241457..e8f834f 100644 --- a/custom_components/ge_home/manifest.json +++ b/custom_components/ge_home/manifest.json @@ -5,7 +5,7 @@ "integration_type": "hub", "iot_class": "cloud_push", "documentation": "https://github.com/simbaja/ha_gehome", - "requirements": ["gehomesdk==0.5.28","magicattr==0.1.6","slixmpp==1.8.3"], + "requirements": ["gehomesdk==0.5.29","magicattr==0.1.6","slixmpp==1.8.3"], "codeowners": ["@simbaja"], - "version": "0.6.12" + "version": "0.6.13" } diff --git a/custom_components/ge_home/update_coordinator.py b/custom_components/ge_home/update_coordinator.py index ea687e9..7c90e0b 100644 --- a/custom_components/ge_home/update_coordinator.py +++ b/custom_components/ge_home/update_coordinator.py @@ -25,6 +25,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.helpers.update_coordinator import DataUpdateCoordinator from homeassistant.helpers.aiohttp_client import async_get_clientsession +from homeassistant.util.ssl import get_default_context from .const import ( DOMAIN, EVENT_ALL_APPLIANCES_READY, @@ -93,6 +94,7 @@ def create_ge_client( self._password, self._region, event_loop=event_loop, + ssl_context=get_default_context() ) client.add_event_handler(EVENT_APPLIANCE_INITIAL_UPDATE, self.on_device_initial_update) client.add_event_handler(EVENT_APPLIANCE_UPDATE_RECEIVED, self.on_device_update) @@ -176,10 +178,9 @@ async def async_setup(self): """Setup a new coordinator""" _LOGGER.debug("Setting up coordinator") - for component in PLATFORMS: - await self.hass.config_entries.async_forward_entry_setup( - self._config_entry, component - ) + await self.hass.config_entries.async_forward_entry_setups( + self._config_entry, PLATFORMS + ) try: await self.async_start_client() @@ -222,15 +223,8 @@ async def async_reset(self): c() self._signal_remove_callbacks.clear() - unload_ok = all( - await asyncio.gather( - *[ - self.hass.config_entries.async_forward_entry_unload( - entry, component - ) - for component in PLATFORMS - ] - ) + unload_ok = await self.hass.config_entries.async_unload_platforms( + self._config_entry, PLATFORMS ) return unload_ok @@ -283,7 +277,7 @@ async def on_device_update(self, data: Tuple[GeAppliance, Dict[ErdCodeType, Any] try: api = self.appliance_apis[appliance.mac_addr] except KeyError: - _LOGGER.warn(f"Could not find appliance {appliance.mac_addr} in known device list.") + _LOGGER.info(f"Could not find appliance {appliance.mac_addr} in known device list.") return self._update_entity_state(api.entities) diff --git a/info.md b/info.md index 55d45ee..9f172ae 100644 --- a/info.md +++ b/info.md @@ -128,6 +128,16 @@ A/C Controls: #### Bugfixes +{% if version_installed.split('.') | map('int') < '0.6.13'.split('.') | map('int') %} +- Bugfix: Deprecations [#290] [#297] +{% endif %} + + +{% if version_installed.split('.') | map('int') < '0.6.12'.split('.') | map('int') %} +- Bugfix: Deprecations [#271] +{% endif %} + + {% if version_installed.split('.') | map('int') < '0.6.11'.split('.') | map('int') %} - Bugfix: Fixed convertable drawer issue (#243) - Bugfix: Updated app types to include electric cooktops (#252)