Allow harmony activity change on start of switching activity (#36699)

* Allow activity change on start of switch

Allow activity to be updated when a switch to a new activity is initiated instead of when it is completed.

* Updates based on feedback

Some items are not required to be done as YAML is not used anymore.
Cleaned-up some code.

* Fix for change on how to set callbacks

How callbacks are set now one has to set the new_activity and new_activity_starting as well, even just with None.

* Added callback update

Added so that when it is changed in the UI the callbacks will be changed as well.

* Added test cases for notify setting

Added test cases for config flow to test new setting for activity notifications.
This commit is contained in:
ehendrix23 authored and GitHub committed 2020-06-19 21:50:42 -05:00
1 parent 5642027ffb
commit 2fd6431cff
10 files changed
+53 -20

No files matched your search

@@ -28,7 +28,8 @@
"description": "Adjust Harmony Hub Options",
"data": {
"activity": "The default activity to execute when none is specified.",
"delay_secs": "The delay between sending commands."
"delay_secs": "The delay between sending commands.",
"activity_notify": "Update current activity on start of activity switch."
}
}
}