[2.0.x] LuaLampControlBehavior documentation is wrong
Posted: Tue Nov 12, 2024 8:19 am
The 2.0.16 docs state for e.g. LuaLampControlBehavior for the circuit condition field:
However, the debugger says something else:
So the value of the "circuit_condition" field is not a CircuitConditionDefinition but a CircuitCondition. And lo and behold, doing this:
works fine in spite of the angry yellow lines in VSCode (and using a CircuitConditionDefinition does not).
This may apply to everything that extends LuaGenericOnOffControlBehavior
circuit_condition :: Read|Write CircuitConditionDefinition
The circuit condition. Writing nil clears the circuit condition.
However, the debugger says something else:
So the value of the "circuit_condition" field is not a CircuitConditionDefinition but a CircuitCondition. And lo and behold, doing this:
works fine in spite of the angry yellow lines in VSCode (and using a CircuitConditionDefinition does not).
This may apply to everything that extends LuaGenericOnOffControlBehavior