当我运行测试套件时https://smarthome-test-suite.withgoogle.com/
大约 30% 的测试因错误“AssertionError: State 'on' is in reporting states but not in queried states: Expected false to true”而失败
可能是什么原因?
您的查询和报告状态应该同步,它们应该显示相同的行为,无论您在查询中发送什么数据,在报告状态中发送相同的数据。
我面临着下面提到的问题。 我从测试套件中遇到了问题,例如。
状态“亮度”处于报告状态,但不在查询状态; 状态“currentFanSpeedSetting”处于报告状态,但不处于查询状态; 状态“openPercent”处于报告状态,但不在查询状态:预期 false 为 true
我使用的逻辑位于index.js [我已附上图片]。在此处输入图像描述
您可以检查并让我知道任何修改吗