Skip to content

Commit

Permalink
Update sensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
engrbm87 committed Jun 11, 2024
1 parent 5778dcd commit 8cf48cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/trakt/sensor.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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}

0 comments on commit 8cf48cc

Please sign in to comment.