Skip to content

Commit

Permalink
Switch to extra_state_attributes #751
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilis-panos committed Dec 14, 2021
1 parent 671bad2 commit cdbe3f1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 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.1'
VERSION = '1.17.2'
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 @@ -279,7 +279,7 @@ def supported_features(self):
return self._support_flags

@property
def device_state_attributes(self) -> dict:
def extra_state_attributes(self):
"""Platform specific attributes."""
return {
'last_on_operation': self._last_on_operation,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/smartir/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def supported_features(self):
return self._support_flags

@property
def device_state_attributes(self) -> dict:
def extra_state_attributes(self):
"""Platform specific attributes."""
return {
'last_on_speed': self._last_on_speed,
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.1",
"version": "1.17.2",
"updater": {
"version": "1.17.1",
"releaseNotes": "-- Fixes issue #585",
"version": "1.17.2",
"releaseNotes": "-- Switch to extra_state_attributes #751",
"files": [
"__init__.py",
"climate.py",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/smartir/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def supported_features(self):
return self._support_flags

@property
def device_state_attributes(self) -> dict:
def extra_state_attributes(self):
"""Platform specific attributes."""
return {
'device_code': self._device_code,
Expand Down

0 comments on commit cdbe3f1

Please sign in to comment.