Skip to content

Commit 9e4969a

Browse files
author
marq24
committed
native_unit_of_measurement=UnitOfPower.WATT implies device_class=SensorDeviceClass.POWER #30
1 parent d47bf90 commit 9e4969a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

custom_components/tibber_local/const.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class ExtSensorEntityDescription(SensorEntityDescription):
9393
name="Power (actual)",
9494
native_unit_of_measurement=UnitOfPower.WATT,
9595
icon="mdi:meter-electric",
96-
device_class=SensorDeviceClass.ENERGY,
96+
device_class=SensorDeviceClass.POWER,
9797
state_class=SensorStateClass.MEASUREMENT,
9898
),
9999
# Wirkleistung L1
@@ -103,7 +103,7 @@ class ExtSensorEntityDescription(SensorEntityDescription):
103103
name="Power L1",
104104
native_unit_of_measurement=UnitOfPower.WATT,
105105
icon="mdi:meter-electric",
106-
device_class=SensorDeviceClass.ENERGY,
106+
device_class=SensorDeviceClass.POWER,
107107
state_class=SensorStateClass.MEASUREMENT,
108108
),
109109
# Wirkleistung L2
@@ -113,7 +113,7 @@ class ExtSensorEntityDescription(SensorEntityDescription):
113113
name="Power L2",
114114
native_unit_of_measurement=UnitOfPower.WATT,
115115
icon="mdi:meter-electric",
116-
device_class=SensorDeviceClass.ENERGY,
116+
device_class=SensorDeviceClass.POWER,
117117
state_class=SensorStateClass.MEASUREMENT,
118118
),
119119
# Wirkleistung L3
@@ -123,7 +123,7 @@ class ExtSensorEntityDescription(SensorEntityDescription):
123123
name="Power L3",
124124
native_unit_of_measurement=UnitOfPower.WATT,
125125
icon="mdi:meter-electric",
126-
device_class=SensorDeviceClass.ENERGY,
126+
device_class=SensorDeviceClass.POWER,
127127
state_class=SensorStateClass.MEASUREMENT,
128128
),
129129

custom_components/tibber_local/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"iot_class": "local_polling",
1111
"issue_tracker": "https://github.com/marq24/ha-tibber-pulse-local/issues",
1212
"requirements": ["smllib==1.4"],
13-
"version": "2024.7.0"
13+
"version": "2024.7.1"
1414
}

0 commit comments

Comments
 (0)