Vassilis Panos 5 лет назад
Родитель
Сommit
3df3e286e5

+ 1 - 1
custom_components/smartir/__init__.py

@@ -19,7 +19,7 @@ from homeassistant.helpers.typing import ConfigType
 _LOGGER = logging.getLogger(__name__)
 
 DOMAIN = 'smartir'
-VERSION = '1.17.0'
+VERSION = '1.17.1'
 MANIFEST_URL = (
     "https://raw.githubusercontent.com/"
     "smartHomeHub/SmartIR/{}/"

+ 1 - 1
custom_components/smartir/climate.py

@@ -401,7 +401,7 @@ class SmartIRClimate(ClimateEntity, RestoreEntity):
         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:

+ 3 - 3
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",