We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switch_port_power_off or switch_port_power_on will fail: TypeError: list indices must be integers or slices, not dict.
switch_port_power_off
switch_port_power_on
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().
for i in overrides:
for i in range(len(overrides)):
_switch_port_power()
The text was updated successfully, but these errors were encountered:
Is this replaced in the source code ? I did pip install pyunifi and got the error.
Sorry, something went wrong.
@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 : #70 (comment) However it is not yet in the Code.
No branches or pull requests
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()
.The text was updated successfully, but these errors were encountered: