HA has announced that the duration parameter of the timer start service is being deprecated. This change uses timer.change to set the timer duration then timer.start to start the timer.
Type of change
Fixed deprecated timer call that will no longer work in a couple month, causing it to break.
[ ] Dependency upgrade
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (which adds functionality)
[ ] Breaking change (fix/feature causing existing functionality to break)
[ ] Code quality improvements to existing code or addition of tests
[X] fix for future change in HA that will break current code.
Breaking change
None
Proposed change
HA has announced that the duration parameter of the timer start service is being deprecated. This change uses timer.change to set the timer duration then timer.start to start the timer.
Type of change
Fixed deprecated timer call that will no longer work in a couple month, causing it to break.
Additional information