mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Remove last_reset from vesync sensor (#63877)
This commit is contained in:
parent
b4b758811f
commit
ccc4423c62
@ -1,5 +1,4 @@
|
|||||||
"""Support for power & energy sensors for VeSync outlets."""
|
"""Support for power & energy sensors for VeSync outlets."""
|
||||||
from datetime import datetime
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.components.sensor import (
|
from homeassistant.components.sensor import (
|
||||||
@ -126,11 +125,6 @@ class VeSyncEnergySensor(VeSyncSensorEntity):
|
|||||||
"""Return the energy device class."""
|
"""Return the energy device class."""
|
||||||
return SensorDeviceClass.ENERGY
|
return SensorDeviceClass.ENERGY
|
||||||
|
|
||||||
@property
|
|
||||||
def last_reset(self):
|
|
||||||
"""Return datetime representing beginning of day."""
|
|
||||||
return datetime.today()
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def native_value(self):
|
def native_value(self):
|
||||||
"""Return the today total energy usage in kWh."""
|
"""Return the today total energy usage in kWh."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user