File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 1313TEMP_CELSIUS = "°C"
1414TIME_MILLISECONDS = "ms"
1515VOLUME_CUBIC_METERS = "m³"
16+ VOLUME_CUBIC_METERS_PER_HOUR = "m³/h"
1617
1718### Stick constants ###
1819
290291SWITCH_GROUP_TYPES = ["switching" , "report" ]
291292
292293HOME_MEASUREMENTS = {
293- "electricity_consumed" : "power" ,
294- "electricity_produced" : "power" ,
295- "gas_consumed" : "gas" ,
296- "outdoor_temperature" : "temperature" ,
294+ "electricity_consumed" : {
295+ ATTR_NAME : "power" ,
296+ ATTR_UNIT_OF_MEASUREMENT : POWER_WATT ,
297+ },
298+ "electricity_produced" : {
299+ ATTR_NAME : "power" ,
300+ ATTR_UNIT_OF_MEASUREMENT : POWER_WATT ,
301+ },
302+ "gas_consumed" : {
303+ ATTR_NAME : "gas" ,
304+ ATTR_UNIT_OF_MEASUREMENT : VOLUME_CUBIC_METERS ,
305+ },
306+ "outdoor_temperature" : {
307+ ATTR_NAME : "temperature" ,
308+ ATTR_UNIT_OF_MEASUREMENT : TEMP_CELSIUS
309+ },
297310}
298311
299312# Excluded:
You can’t perform that action at this time.
0 commit comments