Skip to content

Commit

Permalink
fix units
Browse files Browse the repository at this point in the history
  • Loading branch information
CFenner committed Jun 24, 2024
1 parent ef02cbc commit cde0744
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions netatmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,29 +438,29 @@ Module.register('netatmo', {
},
getTemperatureUnitLabel (unit) {
switch (unit) {
case 'imperial':
case 'IMPERIAL':
return '°F'
case 'metric':
case 'METRIC':
default:
return '°C'
}
},
getRainUnitLabel (unit) {
switch (unit) {
case 'imperial':
case 'IMPERIAL':
return 'in/h'
case 'metric':
case 'METRIC':
default:
return 'mm/h'
}
},
getPressureUnitLabel (unit) {
switch (unit) {
case 'mmhg':
return '°F'
case 'inhg':
return '°F'
case 'mbar':
case 'MMHG':
return 'mmHg'
case 'INHG':
return 'inHg'
case 'MBAR':
default:
return 'mbar'
}
Expand Down

0 comments on commit cde0744

Please sign in to comment.