From fd798a3b65f0a6914bf597e0af991c38c6bc7d6d Mon Sep 17 00:00:00 2001 From: JP Ellis Date: Sun, 12 Dec 2021 16:55:32 +0200 Subject: [PATCH] Update entity.py device_state_attributes -> extra_state_attributes name change --- custom_components/eskom_loadshedding/entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/eskom_loadshedding/entity.py b/custom_components/eskom_loadshedding/entity.py index 3be3e86..e36f815 100644 --- a/custom_components/eskom_loadshedding/entity.py +++ b/custom_components/eskom_loadshedding/entity.py @@ -34,7 +34,7 @@ def device_info(self): } @property - def device_state_attributes(self): + def extra_state_attributes(self): """Return the state attributes.""" return { "stage": self.coordinator.data.get("stage"),