Skip to content

Commit

Permalink
Handle knots with kn abbreviation properly (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
decompil3d authored Nov 27, 2022
1 parent b4ed0c3 commit be9ecd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hourly-weather.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ export class HourlyWeatherCard extends LitElement {
case 'ft/s':
return speed * 0.3048;
case 'kt':
case 'kn':
return speed * 0.51444444444444;
}
return -1;
Expand Down

0 comments on commit be9ecd4

Please sign in to comment.