Fix clear night weather condition for metoffice (#145470)

This commit is contained in:
avee87 2025-05-26 14:43:28 +01:00 committed by GitHub
parent 14cd00a116
commit a14f3ab6b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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