From fcc48c4ad6e42a3eb4fc05d2fc4a2cd6e35f51ec Mon Sep 17 00:00:00 2001 From: Bryan Blunt Date: Fri, 22 Oct 2021 20:40:38 +0100 Subject: [PATCH] add current and voltage sensors --- custom_components/lightwave2/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/lightwave2/sensor.py b/custom_components/lightwave2/sensor.py index fbfe6ff..6df7f7d 100644 --- a/custom_components/lightwave2/sensor.py +++ b/custom_components/lightwave2/sensor.py @@ -3,7 +3,7 @@ from homeassistant.components.sensor import STATE_CLASS_MEASUREMENT, STATE_CLASS_TOTAL_INCREASING, SensorEntity, SensorEntityDescription from homeassistant.const import (POWER_WATT, ENERGY_WATT_HOUR, DEVICE_CLASS_POWER, DEVICE_CLASS_ENERGY, DEVICE_CLASS_SIGNAL_STRENGTH, SIGNAL_STRENGTH_DECIBELS_MILLIWATT, PERCENTAGE, DEVICE_CLASS_BATTERY, - DEVICE_CLASS_TIMESTAMP) + DEVICE_CLASS_TIMESTAMP, ELECTRIC_POTENTIAL_VOLT, ELECTRIC_CURRENT_AMPERE, DEVICE_CLASS_CURRENT, DEVICE_CLASS_VOLTAGE) from homeassistant.core import callback DEPENDENCIES = ['lightwave2']