Closed sieren closed 6 years ago
According to the documentation state_cmd is supposed to be optional. Previously the plugin would crash as it would attempt to run the state_cmd anyway. This fix is returning the cached state if state_cmd is undefined.
Adresses: https://github.com/luisiam/homebridge-cmdswitch2/issues/31
Has this been released? The issue is still happening for me.
According to the documentation state_cmd is supposed to be optional. Previously the plugin would crash as it would attempt to run the state_cmd anyway. This fix is returning the cached state if state_cmd is undefined.
Adresses: https://github.com/luisiam/homebridge-cmdswitch2/issues/31