Skip to content
New issue

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 error #68

Open
caco3 opened this issue Sep 26, 2021 · 3 comments
Open

switch_port_power_off error #68

caco3 opened this issue Sep 26, 2021 · 3 comments

Comments

@caco3
Copy link

caco3 commented Sep 26, 2021

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().

@marc-odp
Copy link

Is this replaced in the source code ?
I did pip install pyunifi and got the error.

@caco3
Copy link
Author

caco3 commented Feb 16, 2022

@marc-odp I don't think so, I never did a Pull Request and nobody else cared about this.

@marc-odp
Copy link

I think one solution to this issue is in discussion in Pull Requests :
#70 (comment)
However it is not yet in the Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants