kalkih / simple-weather-card

Minimalistic weather card for Home Assistant
MIT License
283 stars 33 forks source link

Wind Bearing state become unknown when the bearing is exactly north (i.e. bearing = 0) #52

Open polyfaces opened 3 years ago

polyfaces commented 3 years ago

As captioned.

  get wind_bearing() {
    return this.attr.wind_bearing
      ? this.degToDirection(this.attr.wind_bearing)
      : this.toLocale('state.default.unknown');
  }