Skip to content

Commit f4e9187

Browse files
authored
Remove last_reset from vicare sensor (home-assistant#63879)
1 parent ccc4423 commit f4e9187

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

homeassistant/components/vicare/sensor.py

-8
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
)
3131
from homeassistant.core import HomeAssistant
3232
from homeassistant.helpers.entity_platform import AddEntitiesCallback
33-
import homeassistant.util.dt as dt_util
3433

3534
from . import ViCareRequiredKeysMixin
3635
from .const import (
@@ -425,7 +424,6 @@ def __init__(
425424
self._api = api
426425
self._device_config = device_config
427426
self._state = None
428-
self._last_reset = dt_util.utcnow()
429427

430428
@property
431429
def device_info(self):
@@ -457,14 +455,8 @@ def native_value(self):
457455
"""Return the state of the sensor."""
458456
return self._state
459457

460-
@property
461-
def last_reset(self):
462-
"""Return the time when the sensor was last reset."""
463-
return self._last_reset
464-
465458
def update(self):
466459
"""Update state of sensor."""
467-
self._last_reset = dt_util.start_of_local_day()
468460
try:
469461
with suppress(PyViCareNotSupportedFeatureError):
470462
self._state = self.entity_description.value_getter(self._api)

0 commit comments

Comments
 (0)