From 120e5a45caf5803773121ee806a1809c637e6d07 Mon Sep 17 00:00:00 2001 From: Sven ten Raa Date: Tue, 27 Feb 2024 14:01:05 +0100 Subject: [PATCH] Change gps altitude register from meters per seconds to meters to reflect new specsheet published --- custom_components/victron/const.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/victron/const.py b/custom_components/victron/const.py index bc4c9e1..c8e7a53 100644 --- a/custom_components/victron/const.py +++ b/custom_components/victron/const.py @@ -7,6 +7,7 @@ UnitOfElectricPotential, UnitOfElectricCurrent, UnitOfFrequency, + UnitOfLength, UnitOfTime, REVOLUTIONS_PER_MINUTE, UnitOfIrradiance, @@ -615,7 +616,7 @@ class charger_mode(Enum): "gps_speed": RegisterInfo(2805, UINT16, UnitOfSpeed.METERS_PER_SECOND, 100), "gps_fix": RegisterInfo(register=2806, dataType=UINT16, entityType=BoolReadEntityType()), "gps_numberofsatellites": RegisterInfo(2807, UINT16), - "gps_altitude": RegisterInfo(2808, INT32, UnitOfSpeed.METERS_PER_SECOND, 10) + "gps_altitude": RegisterInfo(2808, INT32, UnitOfLength.METERS, 10) } class ess_batterylife_state(Enum):