`switch_port_power_off` or `switch_port_power_on` will fail: `TypeError: list indices must be integers or slices, not dict`. I fixed it with replacing `for i in overrides:` with `for i in range(len(overrides)):` in `_switch_port_power()`.