mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Fix clear night weather condition for metoffice (#145470)
This commit is contained in:
parent
14cd00a116
commit
a14f3ab6b1
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user