-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Home assistant connector #2874
Home assistant connector #2874
Conversation
…to triggers and do actions on them. Also add HomeAssistantConfig which stores the configuration for the HomeAssistantConnector
Thank you, as discuessed on discord I will review as soon as possible but it might take some time since this is a rather large change. Just from looking at the images: You included homassistant in the UI, do you think that makes sense if the connectors should be usable for all kinds of integrations? Is it maybe preferable to name everything independently of the service. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so finally had the time to review this. Overall I think everything looks good, I just added a few minor comments here and there.
One big thing for me though is that I do not understand the connector_manager.py (or generally the whole stack of how the signal is processed) ways of working very well or at least that whole async queue thing is something I have not used before. Do you think you could add, maybe directly in the file, a few lines of comments of how this thing works and how the queue is supposed to work (signal will trigger items to be added to the queue, the queue will run them in parallel or after another?!).
Maybe also a few links to the django docs if applicable or whatever you think might make it easier for me in 3 years to understand whats wrong when something breaks 😂
I added a decently extensive explanation at the top of the ConnectorManager on howit works and how it kinda works. If its still unclear I can hop into a voice call and walk you through if you want a quick explanation. |
…umentation how to disable it. Add extra documentation
…gle to menu item, undo unnecessary changes
The multiprocessing was changed to threading because it was giving some un-explained child processes that pytest couldnt kill. |
ok so final review is trough, I am happy with the state. Two final things
after that I will get it merged for the next release |
…ctor # Conflicts: # cookbook/views/api.py # recipes/settings.py
…ctor # Conflicts: # cookbook/forms.py # requirements.txt
Hello @vabene1111 , I've discovered this great feature, but it seems not working with my systems. :-( |
There was some issue being tracked in #3213, if you can follow those steps and create an issue with as much info/logs as possible |
There seems indeed to be some bug currently that this feature ONLY works with |
haha I had some of those as well in the past, one pretty recently but I do not remember exactly what caused it. There are indeed a few functions in django that behave differently when running DEBUG=1 and also when testing with the dev server. I see you already got it sorted out, very nice! |
ListView:
Edit Screen:
If you want me to remove the ci optimizations from this PR. Please let me know
--- Ignore this configuration for connectors.md