mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Pass language to the Airly API (#85655)
* Pass language to the API * Pass only pl or en * Add comment
This commit is contained in:
parent
4895f2e7c2
commit
cc016c9bba
@ -150,7 +150,9 @@ class AirlyDataUpdateCoordinator(DataUpdateCoordinator):
|
||||
"""Initialize."""
|
||||
self.latitude = latitude
|
||||
self.longitude = longitude
|
||||
self.airly = Airly(api_key, session)
|
||||
# Currently, Airly only supports Polish and English
|
||||
language = "pl" if hass.config.language == "pl" else "en"
|
||||
self.airly = Airly(api_key, session, language=language)
|
||||
self.use_nearest = use_nearest
|
||||
|
||||
super().__init__(hass, _LOGGER, name=DOMAIN, update_interval=update_interval)
|
||||
|
Loading…
x
Reference in New Issue
Block a user