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

Device registry #74

Closed
wants to merge 23 commits into from
Closed

Device registry #74

wants to merge 23 commits into from

Conversation

lllucius
Copy link

@lllucius lllucius commented Jan 9, 2025

This converts all of the Appliance creation to a "registry" of sorts. So when a new device type is added, say a humidifer, then you just need to create the humidifer.py and import it in init.py

@abmantis abmantis marked this pull request as draft January 9, 2025 22:39
@abmantis
Copy link
Owner

abmantis commented Jan 9, 2025

Marking this as draft too, since it as a lot of unrelated changes from the other branches (those should get merged in first, before this one can go)

@lllucius
Copy link
Author

lllucius commented Jan 9, 2025

It ws more like me just being stupid for skipping running pytest in the first. I'd never use it in the past, but for this kind of project I definitely see the benefit.

I see the Ruff is complaining. Did you want me to address those failures as well?

@lllucius lllucius marked this pull request as ready for review January 10, 2025 00:14
@lllucius
Copy link
Author

Man, I'm liking this Ruff fella! I try to be consistent with "style" across files, but I'm always missing something. Ruff is a miracle worker!!!

@abmantis abmantis marked this pull request as draft January 10, 2025 22:53
@abmantis
Copy link
Owner

Sorry, but if you look at the diff you can see that this has a lot of changes from the websocket move PR for example.

Also, I am not sure I understand the motivation for this PR, but since it contains a lot of changes I haven't looked too deep into it.

@lllucius
Copy link
Author

lllucius commented Jan 10, 2025 via email

@lllucius
Copy link
Author

lllucius commented Jan 10, 2025 via email

@lllucius
Copy link
Author

Getting a bit difficult to maintain here and would rather just resubmit a clean PR after the other 2 have been resolved.

@lllucius lllucius closed this Jan 15, 2025
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.

2 participants