Skip to content

Commit

Permalink
Make py3.5 compatible
Browse files Browse the repository at this point in the history
Remove f string
  • Loading branch information
MatthewFlamm committed Jul 18, 2019
1 parent fd3a90a commit 4946d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/nws/weather.py
Expand Up @@ -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)
Expand Down

0 comments on commit 4946d91

Please sign in to comment.