mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Use localized forecast for openweathermap (#11770)
Use "detailed status" of forecast to get localized value
This commit is contained in:
parent
5c474ec42d
commit
46bbd78b23
@ -176,7 +176,7 @@ class OpenWeatherMapSensor(Entity):
|
|||||||
elif self.type == 'forecast':
|
elif self.type == 'forecast':
|
||||||
if fc_data is None:
|
if fc_data is None:
|
||||||
return
|
return
|
||||||
self._state = fc_data.get_weathers()[0].get_status()
|
self._state = fc_data.get_weathers()[0].get_detailed_status()
|
||||||
|
|
||||||
|
|
||||||
class WeatherData(object):
|
class WeatherData(object):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user