It's me again :)
I think there is a misspell in
def switch_channel(self, channel_id): <br> bits = self._channel_to_bits(channel\_id) <br> self._switch_pins_with_bits(bits) <br> self.current_bits = bits
channel\_id ==> channel_id
best,