From d834416f84aca5627bc5d1ac2dac1f20b338aa5e Mon Sep 17 00:00:00 2001 From: Serios Date: Mon, 2 May 2022 02:31:13 +0300 Subject: [PATCH] Update sensor.py --- custom_components/varna_public_transport/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/varna_public_transport/sensor.py b/custom_components/varna_public_transport/sensor.py index 72ee31d..10c84dd 100644 --- a/custom_components/varna_public_transport/sensor.py +++ b/custom_components/varna_public_transport/sensor.py @@ -106,7 +106,7 @@ def should_poll(self): return False @property - def device_state_attributes(self): + def extra_state_attributes(self): """Return the state attributes.""" attr = {} attr["StopName"] = self._stopname