File tree 1 file changed +0
-8
lines changed
homeassistant/components/vicare
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 30
30
)
31
31
from homeassistant .core import HomeAssistant
32
32
from homeassistant .helpers .entity_platform import AddEntitiesCallback
33
- import homeassistant .util .dt as dt_util
34
33
35
34
from . import ViCareRequiredKeysMixin
36
35
from .const import (
@@ -425,7 +424,6 @@ def __init__(
425
424
self ._api = api
426
425
self ._device_config = device_config
427
426
self ._state = None
428
- self ._last_reset = dt_util .utcnow ()
429
427
430
428
@property
431
429
def device_info (self ):
@@ -457,14 +455,8 @@ def native_value(self):
457
455
"""Return the state of the sensor."""
458
456
return self ._state
459
457
460
- @property
461
- def last_reset (self ):
462
- """Return the time when the sensor was last reset."""
463
- return self ._last_reset
464
-
465
458
def update (self ):
466
459
"""Update state of sensor."""
467
- self ._last_reset = dt_util .start_of_local_day ()
468
460
try :
469
461
with suppress (PyViCareNotSupportedFeatureError ):
470
462
self ._state = self .entity_description .value_getter (self ._api )
You can’t perform that action at this time.
0 commit comments