mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Use Cloud State as alternative state if condition unknown (#37121)
This commit is contained in:
parent
f34455b6c2
commit
8ad7b68c9e
@ -54,7 +54,9 @@ class BOMWeather(WeatherEntity):
|
|||||||
@property
|
@property
|
||||||
def condition(self):
|
def condition(self):
|
||||||
"""Return the current condition."""
|
"""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
|
# Now implement the WeatherEntity interface
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user