if all the relays are open, the switch_state is (@) and the functions close_relays and open_relays (and ._effectuate) will fail because:
the code line:
currently = self._channel_list_to_state(self._state)
will raise a ValueError: Expected channel sequence, got ['']
To reproduce the error, open all the relays, try to close a random relay.
if all the relays are open, the switch_state is (@) and the functions close_relays and open_relays (and ._effectuate) will fail because:
the code line:
currently = self._channel_list_to_state(self._state)
will raise a ValueError: Expected channel sequence, got ['']
To reproduce the error, open all the relays, try to close a random relay.