simple-weather-card
simple-weather-card copied to clipboard
Wind Bearing state become unknown when the bearing is exactly north (i.e. bearing = 0)
As captioned.
get wind_bearing() {
return this.attr.wind_bearing
? this.degToDirection(this.attr.wind_bearing)
: this.toLocale('state.default.unknown');
}