From 0f99a8c3696c1094180fe1a55abb5c679fb5ee88 Mon Sep 17 00:00:00 2001 From: covid10 <71146231+covid10@users.noreply.github.com> Date: Sat, 11 Dec 2021 00:30:28 +0100 Subject: [PATCH] Fix for device_state_attributes warnings Fix device state attribute warnings that began in 2021.12.0b --- custom_components/deepstack_object/image_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/deepstack_object/image_processing.py b/custom_components/deepstack_object/image_processing.py index d0dfcb2..0b6822a 100644 --- a/custom_components/deepstack_object/image_processing.py +++ b/custom_components/deepstack_object/image_processing.py @@ -422,7 +422,7 @@ def should_poll(self): return False @property - def device_state_attributes(self) -> Dict: + def extra_state_attributes(self) -> Dict: """Return device specific state attributes.""" attr = {} attr["targets"] = self._targets