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

re-enable idle scripts #625

Merged
merged 2 commits into from
Jan 28, 2024
Merged

Conversation

hb020
Copy link
Contributor

@hb020 hb020 commented Jan 27, 2024

See #618

The idle scripts were inoperative since a recent commit.

Not sure if what I claim is true, but this is my interpretation: Since:

  • dispatch_idle_state() seems to be called also when a state situation is requested (dispatch_current_state())
  • dispatch_idle() seems to be called only upon startup
  • hasp_set_sleep_state() seems to be deprecated

and we want the scripts to be called only when the state changes, I decided to put the scripts directly in the function that detects the changes: hasp_update_sleep_state()

Copy link
Collaborator

@fvanroie fvanroie left a comment

Choose a reason for hiding this comment

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

TAG_MAIN should be TAG_HASP

@hb020
Copy link
Contributor Author

hb020 commented Jan 27, 2024

Done

@hb020 hb020 requested a review from fvanroie January 27, 2024 15:33
@fvanroie fvanroie merged commit 54ca244 into HASwitchPlate:master Jan 28, 2024
@fvanroie
Copy link
Collaborator

Thanks!

@hb020 hb020 deleted the reenable-idle-scripts branch January 28, 2024 13:27
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