Skip to content

Commit

Permalink
adjust altitude sensor unit to centimeters instead of meters. closes #49
Browse files Browse the repository at this point in the history
  • Loading branch information
snicker committed Aug 14, 2024
1 parent 054e069 commit 5166c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/zwift/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down

0 comments on commit 5166c61

Please sign in to comment.