From 6a2505809a667347f7599dbbed614f4a7636bcd6 Mon Sep 17 00:00:00 2001 From: BottlecapDave Date: Sat, 18 Mar 2023 05:58:12 +0000 Subject: [PATCH] fix(sensor): Fixed kwh gas sensor device class This is to support it being added via energy dashboard --- .../sensors/gas/previous_accumulative_consumption_kwh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/octopus_energy/sensors/gas/previous_accumulative_consumption_kwh.py b/custom_components/octopus_energy/sensors/gas/previous_accumulative_consumption_kwh.py index f291d45d..2d0eaae5 100644 --- a/custom_components/octopus_energy/sensors/gas/previous_accumulative_consumption_kwh.py +++ b/custom_components/octopus_energy/sensors/gas/previous_accumulative_consumption_kwh.py @@ -45,7 +45,7 @@ def name(self): @property def device_class(self): """The type of sensor""" - return SensorDeviceClass.GAS + return SensorDeviceClass.ENERGY @property def state_class(self):