From 04d16d76076a3ffff7ca7706ac5347c47f86de6f Mon Sep 17 00:00:00 2001 From: jamespcole Date: Sun, 22 Mar 2015 15:18:58 +1100 Subject: [PATCH] removed unused state attributes that are no longer required after upstream changes --- homeassistant/components/sensor/sabnzbd.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/sensor/sabnzbd.py b/homeassistant/components/sensor/sabnzbd.py index d33c9603c01..974c7d05fbe 100644 --- a/homeassistant/components/sensor/sabnzbd.py +++ b/homeassistant/components/sensor/sabnzbd.py @@ -130,12 +130,9 @@ class SabnzbdSensor(Entity): return self._state @property - def state_attributes(self): - """ Returns the state attributes. """ - return { - ATTR_FRIENDLY_NAME: self.name, - ATTR_UNIT_OF_MEASUREMENT: self._unit_of_measurement, - } + def unit_of_measurement(self): + """ Unit of measurement of this entity, if any. """ + return self._unit_of_measurement def refresh_sabnzbd_data(self): """ Calls the throttled SABnzbd refresh method. """