diff --git a/homeassistant/components/nws/weather.py b/homeassistant/components/nws/weather.py index 21ec567d073..da0bf6b714f 100644 --- a/homeassistant/components/nws/weather.py +++ b/homeassistant/components/nws/weather.py @@ -244,7 +244,7 @@ class NWSWeather(WeatherEntity): """Return the current wind bearing (degrees).""" wind_bearing = None if self.observation: - wind_bearing = self.observation.get('windBearing') + wind_bearing = self.observation.get('windDirection') return wind_bearing @property diff --git a/tests/components/nws/test_nws.py b/tests/components/nws/test_nws.py index 211432380d1..b511e483096 100644 --- a/tests/components/nws/test_nws.py +++ b/tests/components/nws/test_nws.py @@ -29,7 +29,7 @@ from tests.common import get_test_home_assistant, MockDependency OBS = { 'temperature': 7, 'relativeHumidity': 10, - 'windBearing': 180, + 'windDirection': 180, 'visibility': 10000, 'windSpeed': 10, 'seaLevelPressure': 30000,