diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cc3b0e..ad2c6ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,14 @@ ## 0.6.6 -- Fixed issue with region setting (EU accounts) [#130] +- Bugfix: Fixed issue with region setting (EU accounts) [#130] - Updated the temperature conversion (@partsdotpdf) - Updated configuration documentation - Modified dishwasher to include new functionality (@NickWaterton) +- Bugfix: Fixed oven typo (@jdc0730) [#149] +- Bugfix: UoM updates (@morlince) [#138] +- Updated light control (@tcgoetz) [#144] +- Dependency version bumps ## 0.6.5 diff --git a/custom_components/ge_home/devices/oven.py b/custom_components/ge_home/devices/oven.py index 47792ff..f335f8d 100644 --- a/custom_components/ge_home/devices/oven.py +++ b/custom_components/ge_home/devices/oven.py @@ -10,6 +10,7 @@ from gehomesdk import ( OvenConfiguration, ErdCooktopConfig, CooktopStatus, + ErdOvenLightLevel, ErdOvenLightLevelAvailability ) @@ -43,7 +44,9 @@ class OvenApi(ApplianceApi): has_upper_raw_temperature = self.has_erd_code(ErdCode.UPPER_OVEN_RAW_TEMPERATURE) has_lower_raw_temperature = self.has_erd_code(ErdCode.LOWER_OVEN_RAW_TEMPERATURE) + upper_light : ErdOvenLightLevel = self.try_get_erd_value(ErdCode.UPPER_OVEN_LIGHT) upper_light_availability: ErdOvenLightLevelAvailability = self.try_get_erd_value(ErdCode.UPPER_OVEN_LIGHT_AVAILABILITY) + lower_light : ErdOvenLightLevel = self.try_get_erd_value(ErdCode.LOWER_OVEN_LIGHT) lower_light_availability: ErdOvenLightLevelAvailability = self.try_get_erd_value(ErdCode.LOWER_OVEN_LIGHT_AVAILABILITY) _LOGGER.debug(f"Oven Config: {oven_config}") @@ -74,7 +77,7 @@ class OvenApi(ApplianceApi): oven_entities.append(GeErdSensor(self, ErdCode.UPPER_OVEN_RAW_TEMPERATURE)) if has_lower_raw_temperature: oven_entities.append(GeErdSensor(self, ErdCode.LOWER_OVEN_RAW_TEMPERATURE)) - if lower_light_availability is None or lower_light_availability.is_available: + if lower_light_availability is None or lower_light_availability.is_available or lower_light is not None: oven_entities.append(GeOvenLightLevelSelect(self, ErdCode.LOWER_OVEN_LIGHT)) else: oven_entities.extend([ @@ -88,7 +91,7 @@ class OvenApi(ApplianceApi): ]) if has_upper_raw_temperature: oven_entities.append(GeErdSensor(self, ErdCode.UPPER_OVEN_RAW_TEMPERATURE, self._single_name(ErdCode.UPPER_OVEN_RAW_TEMPERATURE))) - if upper_light_availability is None or upper_light_availability.is_available: + if upper_light_availability is None or upper_light_availability.is_available or upper_light is not None: oven_entities.append(GeOvenLightLevelSelect(self, ErdCode.UPPER_OVEN_LIGHT, self._single_name(ErdCode.UPPER_OVEN_LIGHT))) diff --git a/custom_components/ge_home/manifest.json b/custom_components/ge_home/manifest.json index 8d2f7fd..934e468 100644 --- a/custom_components/ge_home/manifest.json +++ b/custom_components/ge_home/manifest.json @@ -3,7 +3,7 @@ "name": "GE Home (SmartHQ)", "config_flow": true, "documentation": "https://github.com/simbaja/ha_gehome", - "requirements": ["gehomesdk==0.5.8","magicattr==0.1.5","slixmpp==1.7.1"], + "requirements": ["gehomesdk==0.5.9","magicattr==0.1.6","slixmpp==1.8.3"], "codeowners": ["@simbaja"], "version": "0.6.6" } diff --git a/hacs.json b/hacs.json index 7c919dc..fa75f45 100644 --- a/hacs.json +++ b/hacs.json @@ -1,6 +1,6 @@ { "name": "GE Home (SmartHQ)", - "homeassistant": "2021.12.0", + "homeassistant": "2022.12.0", "domains": ["binary_sensor", "sensor", "switch", "water_heater", "select", "button", "climate", "light", "number"], "iot_class": "Cloud Polling" } diff --git a/info.md b/info.md index 86f0847..fb2e1d4 100644 --- a/info.md +++ b/info.md @@ -46,6 +46,10 @@ A/C Controls: #### Breaking Changes +{% if version_installed.split('.') | map('int') < '0.6.6'.split('.') | map('int') %} +- Requires HA version 2022.12.0 or later +{% endif %} + {% if version_installed.split('.') | map('int') < '0.6.0'.split('.') | map('int') %} - Requires HA version 2021.12.0 or later - Enabled authentication to both US and EU regions (may require re-auth) @@ -110,6 +114,9 @@ A/C Controls: {% if version_installed.split('.') | map('int') < '0.6.6'.split('.') | map('int') %} - Fixed region issues after setup (#130) - Updated the temperature conversion (#137) +- UoM updates (#138) +- Fixed oven typo (#149) +- Updated light control (#144) {% endif %} {% if version_installed.split('.') | map('int') < '0.6.3'.split('.') | map('int') %}