From 4e0693f7f5dfe6fe6f354d9625ba8b80b88dad60 Mon Sep 17 00:00:00 2001 From: Piotr Machowski Date: Mon, 24 Jan 2022 03:26:00 +0100 Subject: [PATCH] Fix deprecation warning --- custom_components/mpk_lodz/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/mpk_lodz/sensor.py b/custom_components/mpk_lodz/sensor.py index 56bd918..71da761 100644 --- a/custom_components/mpk_lodz/sensor.py +++ b/custom_components/mpk_lodz/sensor.py @@ -78,7 +78,7 @@ def unit_of_measurement(self): return None @property - def device_state_attributes(self): + def extra_state_attributes(self): attr = dict() attr['stop_name'] = self._real_stop_name if self._departures is not None: