Skip to content

Commit

Permalink
Update netatmo.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CFenner committed Jun 24, 2024
1 parent b2b86f9 commit a4418eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netatmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Module.register('netatmo', {
},
updateUnitOfMeasurements (userPreferences) {
if (this.config.unitOfMeasurementWind === ''){

Check failure on line 85 in netatmo.js

View workflow job for this annotation

GitHub Actions / ESLint

Missing space before opening brace
this.config.unitOfMeasurementWind = this.convertNetatmoWindUOM(userPreferences.windunit)
this.config.unitOfMeasurementWind = this.convertNetatmoWindUnit(userPreferences.windunit)
console.log('Using user preferred unit of measurement for wind values %o', this.config.unitOfMeasurementWind)
}
},
Expand Down Expand Up @@ -303,7 +303,7 @@ Module.register('netatmo', {
return value
}
},
convertNetatmoWindUOM (unit) {
convertNetatmoWindUnit (unit) {
switch (unit) {
case 4:
return 'KT'
Expand Down

0 comments on commit a4418eb

Please sign in to comment.