diff --git a/custom_components/hvcgroep/sensor.py b/custom_components/hvcgroep/sensor.py index 4bc6d05..9b6b4fa 100644 --- a/custom_components/hvcgroep/sensor.py +++ b/custom_components/hvcgroep/sensor.py @@ -232,7 +232,7 @@ def icon(self): return self._icon @property - def device_state_attributes(self): + def extra_state_attributes(self): """Return the state attributes of this device.""" return { "day": self._day, @@ -264,4 +264,4 @@ async def async_update(self): self._state = None self._day = None - _LOGGER.debug("Device: {} State: {}".format(self._name, self._state)) \ No newline at end of file + _LOGGER.debug("Device: {} State: {}".format(self._name, self._state))