diff --git a/homeassistant/components/bom/weather.py b/homeassistant/components/bom/weather.py index 139c61a3b0f..94b9960c851 100644 --- a/homeassistant/components/bom/weather.py +++ b/homeassistant/components/bom/weather.py @@ -4,13 +4,7 @@ import logging import voluptuous as vol from homeassistant.components.weather import PLATFORM_SCHEMA, WeatherEntity -from homeassistant.const import ( - CONF_LATITUDE, - CONF_LONGITUDE, - CONF_NAME, - POWER_WATT, - TEMP_CELSIUS, -) +from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, TEMP_CELSIUS from homeassistant.helpers import config_validation as cv # Reuse data and API logic from the sensor implementation @@ -105,7 +99,7 @@ class BOMWeather(WeatherEntity): "SSW", "SW", "WSW", - POWER_WATT, + "W", "WNW", "NW", "NNW", diff --git a/homeassistant/components/homematicip_cloud/sensor.py b/homeassistant/components/homematicip_cloud/sensor.py index e45e73b8c03..a45591ecc30 100644 --- a/homeassistant/components/homematicip_cloud/sensor.py +++ b/homeassistant/components/homematicip_cloud/sensor.py @@ -414,7 +414,7 @@ def _get_wind_direction(wind_direction_degree: float) -> str: if 236.25 <= wind_direction_degree < 258.75: return "WSW" if 258.75 <= wind_direction_degree < 281.25: - return POWER_WATT + return "W" if 281.25 <= wind_direction_degree < 303.75: return "WNW" if 303.75 <= wind_direction_degree < 326.25: