-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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 sensors platform to Watergate integration #133015
Add sensors platform to Watergate integration #133015
Conversation
For reviewers: I left two questions in the code, because it is kinda weird for me and I do not want to reinvent a wheel if you think I should do it in a different way. |
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
coordinator, | ||
FLOW_SENSOR_NAME, | ||
FLOW_ENTITY_NAME, | ||
lambda data: (data.telemetry.flow / 1000) |
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.
I think if you use unit_of_measurement
and native_unit_of_measurement
HA will do the transformation for you.
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.
Well there is no MILLILITERS_PER_MINUTE, so probably transformation will not work that easy, do you want me to include this new unit in this PR?
ca4e537
to
e18f266
Compare
e18f266
to
0a0cd9e
Compare
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 also avoid squashing the commits, as it makes the review process more complicated.
… handlers in entity.
… handlers in entity. Rename uptime entities to up since.
I would like to say sorry for being pain in the neck with all those bad stuff you are discovering here but I am learning the whole eco system. Thanks for keeping the high quality of the whole code. |
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.
minor cleanups
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.
LGTM, 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.
Final things, after this we can merge :)
Breaking change
Proposed change
Adding additional entities for Watergate integration.
Type of change
Additional information
Checklist
ruff format 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
.To help with the load of incoming pull requests: