Improve string formatting v6 (#33698)
This commit is contained in:
parent
d7e3b0b755
commit
eae21be5b9
43 changed files with 81 additions and 87 deletions
|
@ -125,8 +125,9 @@ class OpenHardwareMonitorData:
|
|||
|
||||
def refresh(self):
|
||||
"""Download and parse JSON from OHM."""
|
||||
data_url = "http://{}:{}/data.json".format(
|
||||
self._config.get(CONF_HOST), self._config.get(CONF_PORT)
|
||||
data_url = (
|
||||
f"http://{self._config.get(CONF_HOST)}:"
|
||||
f"{self._config.get(CONF_PORT)}/data.json"
|
||||
)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue