Skip to content

Commit

Permalink
Fixes issue #585
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilis-panos committed Oct 18, 2021
1 parent d72c078 commit 3df3e28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion custom_components/smartir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/{}/"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/smartir/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions custom_components/smartir/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3df3e28

Please sign in to comment.