Rafactor the logic in the wrapper functions on_*
The logic was backwards since it was tested if a condition was not given. Instead the logic should follow what the wrapper name suggests: test if the device is in a state or if the device is in state on.
Loading
Please register or sign in to comment