Open caco3 opened 3 years ago
Is this replaced in the source code ? I did pip install pyunifi and got the error.
@marc-odp I don't think so, I never did a Pull Request and nobody else cared about this.
I think one solution to this issue is in discussion in Pull Requests : https://github.com/finish06/pyunifi/pull/70#issue-1096583226 However it is not yet in the Code.
switch_port_power_off
orswitch_port_power_on
will fail:TypeError: list indices must be integers or slices, not dict
.I fixed it with replacing
for i in overrides:
withfor i in range(len(overrides)):
in_switch_port_power()
.