Skip to content

Datetime fixes#37

Merged
oyvindwe merged 1 commit into
echoromeo:masterfrom
oyvindwe:datetime-fixes
Apr 13, 2024
Merged

Datetime fixes#37
oyvindwe merged 1 commit into
echoromeo:masterfrom
oyvindwe:datetime-fixes

Conversation

@oyvindwe
Copy link
Copy Markdown
Collaborator

@oyvindwe oyvindwe commented Apr 1, 2024

Some minor issues I discovered while fixing #35, but did not affect the HA integration:

  • Set default value of dt for get_week_profile_status() when actually called (similar issue as Fix get_current_zone_mode for 'now' #30)
  • Use timezone from initialization for current datetimes
  • Improved debug logging with datetimes

- Set default value of dt for get_week_profile_status when actually called
- Use timezone from initialization for current datetime
- Improved debug logging with datetimes
@oyvindwe oyvindwe requested a review from capelevy April 1, 2024 19:33
Copy link
Copy Markdown
Collaborator

@capelevy capelevy left a comment

Choose a reason for hiding this comment

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

Looks reasonable.
The dt: datetime.datetime=None can be discussed, but we do not have to live just on the bleeding edge here :)

@oyvindwe oyvindwe merged commit 4f22a3f into echoromeo:master Apr 13, 2024
@oyvindwe oyvindwe deleted the datetime-fixes branch April 13, 2024 11:40
oyvindwe added a commit to oyvindwe/pynobo that referenced this pull request May 3, 2026
- Set default value of dt for get_week_profile_status when actually called
- Use timezone from initialization for current datetime
- Improved debug logging with datetimes
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