From f485794ebadf008d1e1add343c9a8a01a1788d5a Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 31 Dec 2023 14:18:57 +0100 Subject: [PATCH] Update plant_meters.py fix #122 #124 --- custom_components/plant/plant_meters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/plant/plant_meters.py b/custom_components/plant/plant_meters.py index af902ab..92c932b 100644 --- a/custom_components/plant/plant_meters.py +++ b/custom_components/plant/plant_meters.py @@ -23,7 +23,7 @@ PERCENTAGE, STATE_UNAVAILABLE, STATE_UNKNOWN, - TIME_SECONDS, + UnitOfTime, UnitOfTemperature, ) from homeassistant.core import HomeAssistant, callback @@ -354,7 +354,7 @@ def __init__( source_entity=illuminance_ppfd_sensor.entity_id, unique_id=f"{config.entry_id}-ppfd-integral", unit_prefix=None, - unit_time=TIME_SECONDS, + unit_time=UnitOfTime.SECONDS, ) self._unit_of_measurement = UNIT_PPFD