Skip to content

Commit 266ca4a

Browse files
author
sfstar
authored
Merge pull request #70 from sfstar/bugfix/set_correct_device_class_for_volume_storage
Change volume class to volume storage
2 parents 464c082 + b4f7c94 commit 266ca4a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"domain": "victron",
33
"name": "victron",
4+
"codeowners": [
5+
"@sfstar"
6+
],
47
"config_flow": true,
5-
"integration_type": "hub",
8+
"dependencies": [],
69
"documentation": "https://github.com/sfstar/hass-victron",
10+
"homekit": {},
11+
"integration_type": "hub",
12+
"iot_class": "local_polling",
713
"issue_tracker": "https://github.com/sfstar/hass-victron/issues",
814
"requirements": [
915
"pymodbus==3.1.1"
1016
],
1117
"ssdp": [],
12-
"zeroconf": [],
13-
"homekit": {},
14-
"dependencies": [],
15-
"codeowners": [
16-
"@sfstar"
17-
],
18-
"iot_class": "local_polling",
19-
"version": "0.0.1"
18+
"version": "0.0.11",
19+
"zeroconf": []
2020
}

custom_components/victron/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def determine_victron_device_class(name, unit):
9797
elif unit in [member.value for member in UnitOfTemperature]:
9898
return SensorDeviceClass.TEMPERATURE
9999
elif unit in [member.value for member in UnitOfVolume]:
100-
return SensorDeviceClass.VOLUME # Perhaps change this to water if only water is measured in volume units
100+
return SensorDeviceClass.VOLUME_STORAGE # Perhaps change this to water if only water is measured in volume units
101101
elif unit in [member.value for member in UnitOfSpeed]:
102102
if "meteo" in name:
103103
return SensorDeviceClass.WIND_SPEED

0 commit comments

Comments
 (0)