FutureTense / keymaster

Home Assistant integration for managing Z-Wave enabled locks
MIT License
231 stars 43 forks source link

Fix Timer start service call since duration parameter is being deprecated #341

Closed roblamoreaux closed 10 months ago

roblamoreaux commented 10 months ago

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

firstof9 commented 10 months ago

Have you tested the changes on your system already?

roblamoreaux commented 10 months ago

Yes, I have had this change running on my HA for the last few days with no warnings and it works fine.

firstof9 commented 10 months ago

Thanks!