diff --git a/custom_components/smartir/__init__.py b/custom_components/smartir/__init__.py index 76ecb9c5..8db38d53 100644 --- a/custom_components/smartir/__init__.py +++ b/custom_components/smartir/__init__.py @@ -19,7 +19,7 @@ _LOGGER = logging.getLogger(__name__) DOMAIN = 'smartir' -VERSION = '1.17.0' +VERSION = '1.17.1' MANIFEST_URL = ( "https://raw.githubusercontent.com/" "smartHomeHub/SmartIR/{}/" diff --git a/custom_components/smartir/climate.py b/custom_components/smartir/climate.py index 44e78379..757ca230 100644 --- a/custom_components/smartir/climate.py +++ b/custom_components/smartir/climate.py @@ -401,7 +401,7 @@ async def _async_power_sensor_changed(self, entity_id, old_state, new_state): if new_state is None: return - if new_state.state == old_state.state: + if old_state is not None and new_state.state == old_state.state: return if new_state.state == STATE_ON and self._hvac_mode == HVAC_MODE_OFF: diff --git a/custom_components/smartir/manifest.json b/custom_components/smartir/manifest.json index 05936bd5..c463f494 100644 --- a/custom_components/smartir/manifest.json +++ b/custom_components/smartir/manifest.json @@ -6,10 +6,10 @@ "codeowners": ["@smartHomeHub"], "requirements": ["aiofiles==0.6.0"], "homeassistant": "0.115.0", - "version": "1.17.0", + "version": "1.17.1", "updater": { - "version": "1.17.0", - "releaseNotes": "-- Add play_media service", + "version": "1.17.1", + "releaseNotes": "-- Fixes issue #585", "files": [ "__init__.py", "climate.py",