-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
New EDP re:dy component #16426
New EDP re:dy component #16426
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.
The EdpRedySession
class should be extracted.
homeassistant/components/edp_redy.py
Outdated
from edp_redy import EdpRedySession | ||
|
||
session = EdpRedySession(config[DOMAIN][CONF_USERNAME], | ||
config[DOMAIN][CONF_PASSWORD]) |
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.
continuation line over-indented for visual indent
By the way, is the following lint issue a false positive? |
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 follow our style guide for quotes. There are some inconsistencies.
https://developers.home-assistant.io/docs/en/development_guidelines.html#quotes
Thanks for the suggestions @MartinHjelmare ! Nice catch on the entity updates refactoring, it is better now. |
homeassistant/components/edp_redy.py
Outdated
await discovery.async_load_platform(hass, component, | ||
DOMAIN, {}, config) | ||
platform_loaded = True | ||
|
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.
blank line contains whitespace
Is there any way to fix the following lint issue? Or is it a false positive? |
Not sure. Logic looks sane to me. |
OK, thanks. Do you see anything else to do before merging? |
Disable that pylint error for now. After that I think we're good. 👍 |
@MartinHjelmare this still shows that you are requesting changes. Is there anything else or you just forgot to resolve? |
Description:
New integration of the EDP re:dy platform.
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#6200
Example entry for
configuration.yaml
(if applicable):Checklist:
tox
.If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
.coveragerc
.