WARNING AppDaemon: Invalid callback handle 'None' in cancel_timer()

After updating to core-2021.4.3 an app I haven’t touched in months suddenly is throwing exception in the main AppDaemon log, but the exception is not making it to the Error log.

2021-04-11 09:30:09.448028 WARNING AppDaemon: Invalid callback handle 'None' in cancel_timer() from app occupancy_living

This is ocurring everywhere I’m using this app, I believe (hard to tell given there is no line number to trace) that it’s a helper timer and I’m using the service call to end it.

self.call_service("timer/cancel", entity_id = self._countdown_entity)

1 Like

Same here. Just reverted back to 4.0.5.1 (4.0.7) because these “invalid callbacks” occurred after 4.0.5.2 (4.0.8), not sure yet if this was the reason, but soon will find out.

Edit: probably my bad!
Few months ago I replaced run_in() calls with run_once(), but still store the handle returned by these, and use it to cancel_timer() at the end of the delayed call.
If run_once() already deletes the timer (which is quite likely, otherwise why its name) then this “invalid callback” msg is right.