diff --git a/homeassistant/components/nws/sensor.py b/homeassistant/components/nws/sensor.py index 1e062bf3d36..ab34781f209 100644 --- a/homeassistant/components/nws/sensor.py +++ b/homeassistant/components/nws/sensor.py @@ -23,6 +23,7 @@ from homeassistant.util.unit_conversion import ( PressureConverter, SpeedConverter, ) +from homeassistant.util.unit_system import IMPERIAL_SYSTEM from . import base_unique_id, device_info from .const import ( @@ -80,7 +81,7 @@ class NWSSensor(CoordinatorEntity, SensorEntity): self.entity_description = description self._attr_name = f"{station} {description.name}" - if not hass.config.units.is_metric: + if hass.config.units is IMPERIAL_SYSTEM: self._attr_native_unit_of_measurement = description.unit_convert @property diff --git a/homeassistant/components/nws/weather.py b/homeassistant/components/nws/weather.py index 4684714d58c..7963c1161a9 100644 --- a/homeassistant/components/nws/weather.py +++ b/homeassistant/components/nws/weather.py @@ -107,7 +107,6 @@ class NWSWeather(WeatherEntity): self.coordinator_forecast = hass_data[COORDINATOR_FORECAST_HOURLY] self.station = self.nws.station - self.is_metric = units.is_metric self.mode = mode self.observation = None