Skip to content

Commit

Permalink
Rename device_state_attributes to extra_state_attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
eseglem committed Mar 16, 2022
1 parent 4aaf37d commit 4a8efa7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/wattbox/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Base component constants
DOMAIN = "wattbox"
DOMAIN_DATA = f"{DOMAIN}_data"
VERSION = "0.5.4"
VERSION = "0.7.1"
PLATFORMS = ["binary_sensor", "sensor", "switch"]
REQUIRED_FILES = ["binary_sensor.py", "const.py", "sensor.py", "switch.py"]
ISSUE_URL = "https://github.com/eseglem/hass-wattbox/issues"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/wattbox/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def name(self):
return self._name

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the state attributes."""
return self.attr

Expand Down
2 changes: 1 addition & 1 deletion custom_components/wattbox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "wattbox",
"name": "WattBox",
"version": "0.7.0",
"version": "0.7.1",
"issue_tracker": "https://github.com/eseglem/hass-wattbox/issues",
"documentation": "https://github.com/eseglem/hass-wattbox",
"dependencies": [],
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"switch"
],
"iot_class": "Local Polling",
"homeassistant": "2021.8.0"
"homeassistant": "2022.3.0"
}

0 comments on commit 4a8efa7

Please sign in to comment.