From 0d55ac7fe92144d565f81e8b40a2da2af51910e6 Mon Sep 17 00:00:00 2001 From: Luca Patarca Date: Fri, 21 Oct 2022 14:40:29 +0200 Subject: [PATCH] Fix missing import --- custom_components/aton_storage/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/aton_storage/sensor.py b/custom_components/aton_storage/sensor.py index 5a1f467..cce6dc6 100644 --- a/custom_components/aton_storage/sensor.py +++ b/custom_components/aton_storage/sensor.py @@ -18,7 +18,7 @@ SensorStateClass, ) from homeassistant.config_entries import ConfigEntry -from homeassistant.const import PERCENTAGE, POWER_WATT +from homeassistant.const import PERCENTAGE, POWER_WATT, ENERGY_WATT_HOUR from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing import DiscoveryInfoType