Skip to content

Commit 0645a21

Browse files
committed
Add GROUP_MEASUREMENTS constant
1 parent a441b8c commit 0645a21

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugwise/constants.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@
106106
UOM = namedtuple("UOM", "unit_of_measurement")
107107
DATA = namedtuple("DATA", "name unit_of_measurement")
108108

109+
GROUP_MEASUREMENTS: Final[dict[str, UOM]] = {
110+
"electricity_consumed": UOM(POWER_WATT),
111+
"electricity_produced": UOM(POWER_WATT),
112+
"temperature": UOM(TEMP_CELSIUS),
113+
}
109114
# P1 related measurements:
110115
P1_MEASUREMENTS: Final[dict[str, UOM]] = {
111116
"electricity_consumed": UOM(POWER_WATT),

0 commit comments

Comments
 (0)