From 3189661253eaa43d3db3b0ca6076349bdbee1545 Mon Sep 17 00:00:00 2001 From: Ricardo Letosa Date: Tue, 25 Jan 2022 10:16:13 +0100 Subject: [PATCH] Update sensor.py Error: Entity ide platform implements device_state_attributes There are upcoming changes in HA 2022.2 that will deprecate the use of device_state_attributes, which needs to be renamed to extra_state_attributes. --- custom_components/ide/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/ide/sensor.py b/custom_components/ide/sensor.py index 9246adc..fea6b4c 100644 --- a/custom_components/ide/sensor.py +++ b/custom_components/ide/sensor.py @@ -138,7 +138,7 @@ def unit_of_measurement(self): return self._unit @property - def device_state_attributes(self): + def extra_state_attributes(self): """Return the state attributes.""" return self._attributes