Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions custom_components/victron/manifest.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"domain": "victron",
"name": "victron",
"codeowners": [
"@sfstar"
],
"config_flow": true,
"integration_type": "hub",
"dependencies": [],
"documentation": "https://github.com/sfstar/hass-victron",
"homekit": {},
"integration_type": "hub",
"iot_class": "local_polling",
"issue_tracker": "https://github.com/sfstar/hass-victron/issues",
"requirements": [
"pymodbus==3.1.1"
],
"ssdp": [],
"zeroconf": [],
"homekit": {},
"dependencies": [],
"codeowners": [
"@sfstar"
],
"iot_class": "local_polling",
"version": "0.0.1"
"version": "0.0.11",
"zeroconf": []
}
2 changes: 1 addition & 1 deletion custom_components/victron/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def determine_victron_device_class(name, unit):
elif unit in [member.value for member in UnitOfTemperature]:
return SensorDeviceClass.TEMPERATURE
elif unit in [member.value for member in UnitOfVolume]:
return SensorDeviceClass.VOLUME # Perhaps change this to water if only water is measured in volume units
return SensorDeviceClass.VOLUME_STORAGE # Perhaps change this to water if only water is measured in volume units
elif unit in [member.value for member in UnitOfSpeed]:
if "meteo" in name:
return SensorDeviceClass.WIND_SPEED
Expand Down