From 1c27ffe4adfcd604d42f376bc930b9d5ed310737 Mon Sep 17 00:00:00 2001 From: licheng5625 Date: Tue, 28 Dec 2021 20:08:56 +0100 Subject: [PATCH] device_state_attributes -> extra_state_attributes https://github.com/custom-components/places/issues/31#issue-1078194935 --- custom_components/places/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/places/sensor.py b/custom_components/places/sensor.py index fa3785de..f7727d2d 100644 --- a/custom_components/places/sensor.py +++ b/custom_components/places/sensor.py @@ -392,7 +392,7 @@ def entity_picture(self): return self._entity_picture @property - def device_state_attributes(self): + def extra_state_attributes(self): """Return the state attributes.""" return{ ATTR_STREET_NUMBER: self._street_number,