Skip to content

Commit efa7404

Browse files
Switch PV to kilo Watt
1 parent 86b902c commit efa7404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/mixergy/sensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
22
from datetime import timedelta
3-
from homeassistant.const import PERCENTAGE, TEMP_CELSIUS, STATE_OFF, POWER_WATT
3+
from homeassistant.const import PERCENTAGE, TEMP_CELSIUS, STATE_OFF, POWER_WATT, POWER_KILO_WATT
44
from homeassistant.components.sensor import SensorEntity
55
from homeassistant.components.sensor import SensorDeviceClass
66
from homeassistant.components.integration.sensor import IntegrationSensor
@@ -368,7 +368,7 @@ def state(self):
368368

369369
@property
370370
def unit_of_measurement(self):
371-
return POWER_WATT
371+
return POWER_KILO_WATT
372372

373373
@property
374374
def name(self):

0 commit comments

Comments
 (0)