Skip to content

Commit

Permalink
fix: increased update interval to 1 hour & format to f-string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
geertmeersman committed Aug 24, 2023
1 parent ca7bcbd commit 884c629
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions custom_components/youfone/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand All @@ -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
)
"""

0 comments on commit 884c629

Please sign in to comment.