Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for async_get_time_zone() #25

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

autoSteve
Copy link
Collaborator

@autoSteve autoSteve commented Jun 12, 2024

Further to #24, this is a simple fix to choose either async_get_time_zone() or get_time_zone(), depending on which is available. It uses a simple Python trick to determine whether a variable/function is in scope or not.

Tested on HA 2024.5.0 & 2024.6.2.

Much mentioned in #14.

(Other lines changed are removing extra spaces, as is my want.)

@autoSteve
Copy link
Collaborator Author

I'm almost 💯% that this'll close #14.

Copy link
Owner

@BJReplay BJReplay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. That's great.

@BJReplay BJReplay merged commit f0fd7d2 into BJReplay:v3 Jun 13, 2024
2 checks passed
@autoSteve autoSteve deleted the Utilise-async_get_time_zone branch June 29, 2024 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants