1

我正在使用 AppDaemon 运行 HomeAssistant,并编写了一个 AppDaemon 应用程序来控制我的灯。我使用的self.run_in(...)函数(如文档中所述)调用回调并返回一个处理程序,以便可以取消它。

我在查找有关如何在处理程序的帮助下取消回调的信息时遇到问题。

AppDaemon API 文档run_inhttps ://appdaemon.readthedocs.io/en/stable/AD_API_REFERENCE.html#run-in

4

1 回答 1

0

不知道为什么我错过了它,但它就在文档中:https ://appdaemon.readthedocs.io/en/stable/AD_API_REFERENCE.html#appdaemon.adapi.ADAPI.cancel_timer

于 2019-12-01T02:33:57.127 回答