Make py3.5 compatible

Remove f string
This commit is contained in:
MatthewFlamm
2019-07-18 09:09:15 -04:00
committed by GitHub
parent fd3a90a91e
commit 4946d91779

View File

@ -122,7 +122,7 @@ async def async_setup_platform(hass, config, async_add_entities,
websession = async_get_clientsession(hass) websession = async_get_clientsession(hass)
# ID request as being from HA, pynws prepends the api_key in addition # 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) nws = SimpleNWS(latitude, longitude, api_key_ha, mode, websession)
_LOGGER.debug("Setting up station: %s", station) _LOGGER.debug("Setting up station: %s", station)