From 5166c61a968dc23dfebedb26aeafd0cad631d463 Mon Sep 17 00:00:00 2001 From: snicker Date: Wed, 14 Aug 2024 03:53:03 +0000 Subject: [PATCH] adjust altitude sensor unit to centimeters instead of meters. closes #49 --- custom_components/zwift/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/zwift/sensor.py b/custom_components/zwift/sensor.py index 37f11e9..1aff273 100644 --- a/custom_components/zwift/sensor.py +++ b/custom_components/zwift/sensor.py @@ -99,7 +99,7 @@ 'speed': {'name': 'Speed', 'unit': 'mph', 'unit_metric': 'kmh', 'icon': 'mdi:speedometer'}, 'cadence': {'name': 'Cadence', 'unit': 'rpm', 'icon': 'mdi:rotate-right'}, 'power': {'name': 'Power', 'unit': 'W', 'icon': 'mdi:flash'}, - 'altitude': {'name': 'Altitude', 'unit': 'ft', 'unit_metric': 'm', 'icon': 'mdi:altimeter'}, + 'altitude': {'name': 'Altitude', 'unit': 'ft', 'unit_metric': 'cm', 'icon': 'mdi:altimeter'}, 'distance': {'name': 'Distance', 'unit': 'miles', 'unit_metric': 'm', 'icon': 'mdi:arrow-expand-horizontal'}, 'gradient': {'name': 'Gradient', 'unit': '%', 'icon': 'mdi:image-filter-hdr'}, 'level': {'name': 'Level', 'icon': 'mdi:stairs'},