Commit cdbe3f10 authored by Vassilis Panos's avatar Vassilis Panos
Browse files

Switch to extra_state_attributes #751

parent 671bad24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ from homeassistant.helpers.typing import ConfigType
_LOGGER = logging.getLogger(__name__)

DOMAIN = 'smartir'
VERSION = '1.17.1'
VERSION = '1.17.2'
MANIFEST_URL = (
    "https://raw.githubusercontent.com/"
    "smartHomeHub/SmartIR/{}/"
+1 −1
Original line number Diff line number Diff line
@@ -279,7 +279,7 @@ class SmartIRClimate(ClimateEntity, RestoreEntity):
        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,
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ class SmartIRFan(FanEntity, RestoreEntity):
        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,
+3 −3
Original line number Diff line number Diff line
@@ -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",
+1 −1
Original line number Diff line number Diff line
@@ -208,7 +208,7 @@ class SmartIRMediaPlayer(MediaPlayerEntity, RestoreEntity):
        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,