-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Add nina integration #56647
Add nina integration #56647
Conversation
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.
Thanks for the submission. There are a few items to be fixed, and some lint errors to be corrected.
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.
Thanks for the updates. You'll need to fix the lint errors before this gets merged. I know it's a matter of style, but conforming helps keep the entire code base looking similar.
The remaining errors are generated by the black git hook. I have tried to fix them, but the changes are always reverted. |
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.
Thank you for your contribution!
I have added some review comments.
Also, here are some more general thoughts:
- This is not really user friendly, can we change this somehow?
- The config flow is really slow and not very responsive, selecting something causes the browser to freeze for at least 3 seconds until anything happens.
- You are creating entities based on user input, you should take care of the edge cases.
Feel free to tag me again once you have implemented the feedback accordingly or if you have any follow up questions.
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.
@marvin-w I have now split the city selection into 6 dropdown menus. So there is only a short lag when opening. Would this be a suitable option? |
I don't see any new commits, but it looks better |
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.
Looks better, added some new review comments.
Please fix the pylint errors instead of ignoring them.
@DeerMaximum Please make sure you are following our developer guidelines in our developer documentation. https://developers.home-assistant.io/ Install the pre-commit hook locally in order to avoid formatting issues or make sure to run those checks manually before pushing. |
Left some comments, please fix the cla-error |
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.
Hey :)
I tested it again and it looks much better, I added some more comments to primarily the config flow which I think needs some cleaning.
Feel free to request a review so that I don't forget to have another look.
Thanks!
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.
Thanks! Looks better already! Just some minor comments.
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.
Nice! Thanks for the fast integration!
After retesting I found out that if the Corona Filter is active it will still "block" the space for those entities and move the relevant warnings to the entity under it.
I'd have expected 1 and 2 to be used instead of 3 and 4 - can you please have a look again?
So 1 and 2 should be Unsafe and not 3 and 4. Can we change this?
Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
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.
Looks good to me, thanks @DeerMaximum!
Tested locally and working nicely. Code looks good. Documentation is available. Brands PR is created.
I've asked in discord if one more pair of eyes can give it a quick look.
Thanks @DeerMaximum! |
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.
Please address the comments in a new PR. Thanks!
{ | ||
**{ | ||
vol.Optional(region): cv.multi_select(self.regions[region]) | ||
for region in CONST_REGIONS |
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.
This is a weird form. Why are we splitting it in different region groups? Why not just have one field for all regions?
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.
If this was done to solve browser performance, it seems we're working around an issue instead of solving it.
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.
If I remember correctly the reason was browser performance: #56647 (review)
Should I open an issue for it instead? There are a lot of possible inputs here and it will definitely lag if this is done in a single field.
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.
Yes, we should find out why there's lag.
Breaking change
Proposed change
This pull request added the support to retrieve warnings from the German NINA app.
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: