From f607933b890bba011d8cfa22d5acc23347412325 Mon Sep 17 00:00:00 2001 From: Ian C <108159253+ic-dev21@users.noreply.github.com> Date: Mon, 18 Mar 2024 21:11:59 -0400 Subject: [PATCH] Fix pour issue 400 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ces unités suggérées ne sont plus valides. Vérifié dans le codebase de HA et elles sont maintenant natives donc on n'en a plus besoin. --- custom_components/hilo/sensor.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/custom_components/hilo/sensor.py b/custom_components/hilo/sensor.py index ce162cc..9522670 100755 --- a/custom_components/hilo/sensor.py +++ b/custom_components/hilo/sensor.py @@ -254,7 +254,6 @@ class EnergySensor(IntegrationSensor): _attr_device_class = SensorDeviceClass.ENERGY _attr_native_unit_of_measurement = UnitOfEnergy.KILO_WATT_HOUR _attr_state_class = SensorStateClass.TOTAL_INCREASING - _attr_suggested_unit_of_measurement = UnitOfEnergy.KILO_WATT_HOUR _attr_unit_of_measurement = UnitOfEnergy.KILO_WATT_HOUR _attr_icon = "mdi:lightning-bolt" @@ -540,7 +539,6 @@ class HiloRewardSensor(HiloEntity, RestoreEntity, SensorEntity): _attr_device_class = SensorDeviceClass.MONETARY _attr_state_class = SensorStateClass.TOTAL_INCREASING - _attr_suggested_unit_of_measurement = "CAD" _entity_component_unrecorded_attributes = frozenset({"history"}) def __init__(self, hilo, device, scan_interval):