forked from home-assistant/core
Fix clear night weather condition for metoffice (#145470)
This commit is contained in:
@@ -241,7 +241,7 @@ class MetOfficeCurrentSensor(
|
||||
|
||||
if (
|
||||
self.entity_description.native_attr_name == "significantWeatherCode"
|
||||
and value
|
||||
and value is not None
|
||||
):
|
||||
value = CONDITION_MAP.get(value)
|
||||
|
||||
|
@@ -180,7 +180,7 @@ class MetOfficeWeather(
|
||||
weather_now = self.coordinator.data.now()
|
||||
value = get_attribute(weather_now, "significantWeatherCode")
|
||||
|
||||
if value:
|
||||
if value is not None:
|
||||
return CONDITION_MAP.get(value)
|
||||
return None
|
||||
|
||||
|
Reference in New Issue
Block a user