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

Move from nut2 to PyNUTClient #17

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from
Open

Conversation

thurask
Copy link

@thurask thurask commented May 28, 2024

What does this PR do and why is it necessary?

Move from old nut2 Python lib to more recent, still supported and first party PyNUTClient Python lib.

How was it tested? How can it be tested by the reviewer?

I don't get any errors in Octoprint's log on my setup (Raspberry Pi OS Bookworm + OctoPrint 1.10.1 + CyberPower UPS over USB) although I do only have the one UPS handy to test with; that said, this PR should cover what the old library did 1:1.

What are the relevant tickets if any?

#16

(cherry picked from commit 40c3f5d)
@kantlivelong
Copy link
Owner

Thanks for the PR!

Going to test this as is but could you change importing the module as nut2 to just import PyNut and use that?

from PyNUTClient import PyNut

@thurask
Copy link
Author

thurask commented May 28, 2024

Done 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants