Improve string formatting v5 (#33697)
* Improve string formatting v5 * Address review comments
This commit is contained in:
parent
39336d3ea3
commit
fca90a8ddc
46 changed files with 221 additions and 252 deletions
|
@ -159,7 +159,7 @@ class ZamgData:
|
|||
"""The class for handling the data retrieval."""
|
||||
|
||||
API_URL = "http://www.zamg.ac.at/ogd/"
|
||||
API_HEADERS = {USER_AGENT: "{} {}".format("home-assistant.zamg/", __version__)}
|
||||
API_HEADERS = {USER_AGENT: f"home-assistant.zamg/ {__version__}"}
|
||||
|
||||
def __init__(self, station_id):
|
||||
"""Initialize the probe."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue