Vassilis Panos 5 سال پیش
والد
کامیت
3df3e286e5
3فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 1 1
      custom_components/smartir/__init__.py
  2. 1 1
      custom_components/smartir/climate.py
  3. 3 3
      custom_components/smartir/manifest.json

+ 1 - 1
custom_components/smartir/__init__.py

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

+ 1 - 1
custom_components/smartir/climate.py

@@ -401,7 +401,7 @@ class SmartIRClimate(ClimateEntity, RestoreEntity):
         if new_state is None:
         if new_state is None:
             return
             return
 
 
-        if new_state.state == old_state.state:
+        if old_state is not None and new_state.state == old_state.state:
             return
             return
 
 
         if new_state.state == STATE_ON and self._hvac_mode == HVAC_MODE_OFF:
         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"],
   "codeowners": ["@smartHomeHub"],
   "requirements": ["aiofiles==0.6.0"],
   "requirements": ["aiofiles==0.6.0"],
   "homeassistant": "0.115.0",
   "homeassistant": "0.115.0",
-  "version": "1.17.0",
+  "version": "1.17.1",
   "updater": {
   "updater": {
-    "version": "1.17.0",
-    "releaseNotes": "-- Add play_media service",
+    "version": "1.17.1",
+    "releaseNotes": "-- Fixes issue #585",
     "files": [
     "files": [
       "__init__.py",
       "__init__.py",
       "climate.py",
       "climate.py",