mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 18:58:04 +02:00
Make py3.5 compatible
Remove f string
This commit is contained in:
@ -122,7 +122,7 @@ async def async_setup_platform(hass, config, async_add_entities,
|
||||
|
||||
websession = async_get_clientsession(hass)
|
||||
# ID request as being from HA, pynws prepends the api_key in addition
|
||||
api_key_ha = f"{api_key} homeassistant"
|
||||
api_key_ha = "{} homeassistant".format(api_key)
|
||||
nws = SimpleNWS(latitude, longitude, api_key_ha, mode, websession)
|
||||
|
||||
_LOGGER.debug("Setting up station: %s", station)
|
||||
|
Reference in New Issue
Block a user