Skip to content

Commit

Permalink
Change default locale to en-GB (#84)
Browse files Browse the repository at this point in the history
* Update tgtg_get_tokens.py

Change default locale to en-GB

* Update sensor.py

Change default locale to en-GB
  • Loading branch information
tjorim committed Sep 14, 2023
1 parent 22f22a5 commit 0ab4980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom_components/tgtg/sensor.py
Expand Up @@ -68,6 +68,7 @@ def setup_platform(
user_id=user_id,
cookie=cookie,
user_agent=user_agent,
language="en-GB",
)

# If item: isn't defined, use favorites - otherwise use defined items
Expand Down
2 changes: 1 addition & 1 deletion tgtg_get_tokens.py
Expand Up @@ -9,7 +9,7 @@
email = input("Type your email linked to your TGTG account: ")

# Set up a tgtg client
tgtgClient = TgtgClient(email=email)
tgtgClient = TgtgClient(email=email,language="en-GB")
tgtgClient.get_credentials()

# You should receive an email from TGTG: click the link inside to continue.
Expand Down

0 comments on commit 0ab4980

Please sign in to comment.