From 884c6296715da3cc9020269f4d8de55147af84e7 Mon Sep 17 00:00:00 2001 From: Geert Meersman Date: Thu, 24 Aug 2023 10:21:57 +0200 Subject: [PATCH] fix: increased update interval to 1 hour & format to f-string conversion --- custom_components/youfone/const.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/custom_components/youfone/const.py b/custom_components/youfone/const.py index 9091b75..4ec6d3d 100644 --- a/custom_components/youfone/const.py +++ b/custom_components/youfone/const.py @@ -25,7 +25,7 @@ DEFAULT_COUNTRY = "be" COUNTRY_CHOICES = ["be", "nl"] -COORDINATOR_UPDATE_INTERVAL = timedelta(minutes=15) +COORDINATOR_UPDATE_INTERVAL = timedelta(minutes=60) CONNECTION_RETRY = 5 REQUEST_TIMEOUT = 20 WEBSITE = "https://my.youfone.be/" @@ -38,14 +38,12 @@ NAME = manifest_data.get("name") VERSION = manifest_data.get("version") ISSUEURL = manifest_data.get("issue_tracker") -STARTUP = """ +STARTUP = f""" ------------------------------------------------------------------- -{name} -Version: {version} +{NAME} +Version: {VERSION} This is a custom component If you have any issues with this you need to open an issue here: -{issueurl} +{ISSUEURL} ------------------------------------------------------------------- -""".format( - name=NAME, version=VERSION, issueurl=ISSUEURL -) +"""