From c45cdc5cdd7f1a58f0e7f394d7cd3d7f5af1d9cc Mon Sep 17 00:00:00 2001 From: Dmitry Mamontov Date: Fri, 17 Dec 2021 02:02:08 +0300 Subject: [PATCH] Rename deprecated device_state_attributes to extra_state_attributes --- custom_components/miwifi/device_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/miwifi/device_tracker.py b/custom_components/miwifi/device_tracker.py index 0ab0107..3d9a2aa 100644 --- a/custom_components/miwifi/device_tracker.py +++ b/custom_components/miwifi/device_tracker.py @@ -182,7 +182,7 @@ def available(self) -> bool: return self._available @property - def device_state_attributes(self) -> dict: + def extra_state_attributes(self) -> dict: return { "mac": self._mac, "ip": self._device["ip"],