From 8cf48ccfb6a1b470133e3239b8bef3dcbfb5f8ca Mon Sep 17 00:00:00 2001 From: Rami Mosleh Date: Tue, 11 Jun 2024 20:48:03 +0300 Subject: [PATCH] Update sensor.py --- custom_components/trakt/sensor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/trakt/sensor.py b/custom_components/trakt/sensor.py index 3033e39..838bd97 100644 --- a/custom_components/trakt/sensor.py +++ b/custom_components/trakt/sensor.py @@ -1,5 +1,7 @@ """Sensor platform for Trakt.""" +from typing import Any + from homeassistant.components.sensor import SensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_CLIENT_ID, CONF_NAME @@ -42,6 +44,6 @@ def state(self) -> int: return len(self.coordinator.tv_shows) @property - def extra_state_attributes(self) -> dict[str, str]: + def extra_state_attributes(self) -> dict[str, Any]: """Return the state attributes of the sensor.""" return {"data": self.coordinator.data}