From bc23799c712aad52f0ce129aa247c08a05c83516 Mon Sep 17 00:00:00 2001 From: Diogo Gomes Date: Sun, 12 Nov 2017 14:25:44 +0000 Subject: [PATCH] Change to device state attributes (#10536) * Following the suggestion of @MartinHjelmare --- homeassistant/components/sensor/serial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/serial.py b/homeassistant/components/sensor/serial.py index 7bed4b25011..df0f1e21625 100644 --- a/homeassistant/components/sensor/serial.py +++ b/homeassistant/components/sensor/serial.py @@ -113,7 +113,7 @@ class SerialSensor(Entity): return False @property - def state_attributes(self): + def device_state_attributes(self): """Return the attributes of the entity (if any JSON present).""" return self._attributes