Use device_state_attributes() for platforms (#5649)

* Use device_state_attributes() for platforms

* Update test

* Fix lint issue
This commit is contained in:
Fabian Affolter authored and GitHub committed 2017-01-30 16:16:49 +01:00
1 parent ca558f6485
commit 87764a51ba
10 files changed
+45 -59

No files matched your search

@@ -98,7 +98,7 @@ class LinuxBatterySensor(Entity):
return ICON
@property
def state_attributes(self):
def device_state_attributes(self):
"""Return the state attributes of the sensor."""
return {
ATTR_NAME: self._battery_stat.name,