mirror of
https://github.com/home-assistant/core.git
synced 2025-08-27 16:31:38 +02:00
Use Cloud State as alternative state if condition unknown (#37121)
This commit is contained in:
committed by
Franck Nijhof
parent
cf81a5c09a
commit
a5f00d1db2
@@ -54,7 +54,9 @@ class BOMWeather(WeatherEntity):
|
||||
@property
|
||||
def condition(self):
|
||||
"""Return the current condition."""
|
||||
return self.bom_data.get_reading("weather")
|
||||
return self.bom_data.get_reading("weather") or self.bom_data.get_reading(
|
||||
"cloud"
|
||||
)
|
||||
|
||||
# Now implement the WeatherEntity interface
|
||||
|
||||
|
Reference in New Issue
Block a user