You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
目前插件执行控制都是一个命令一个命令执行的 即使提供了多个操作同时发送的api


一个命令一个命令执行导致一些可以同时发送指令的设备出现问题 并且效率低下
例如对于开灯 会先发送开灯 在发送亮度 在发送色温等 会导致 #1090 #983 的问题 以及其他可能还未报告的延迟问题
如果将它改成一起发送这些问题都将解决
现在 我想来做这件事情 但我发现目前改这个位置非常麻烦 涉及很多地方 所以我提出两种方案
1.新增一个新的方法 set_properties_async 用于同时设置多个属性 这样旧的代码不用改 只要后期有问题的慢慢替换就行 但是增加了后期维护的工作量 以后要维护两套了
2.将所有的调用部分全部改掉 依然用set_property_async 修改他的传入参数 这样保持简洁 但是改动涉及所有实体
请给一些意见
Beta Was this translation helpful? Give feedback.
All reactions