-
-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Add availability to opentherm_gw entities #32408
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
Conversation
|
Failed tests seem unrelated. Can anyone confirm? |
MartinHjelmare
left a comment
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! Just a small clean up.
| @callback | ||
| def receive_report(self, status): | ||
| """Receive and handle a new report from the Gateway.""" | ||
| self._available = status != {} |
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.
| self._available = status != {} | |
| self._available = bool(status) |
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 suggestion, I will take care of it tomorrow.
|
Comment addressed and rebased on latest dev. |
MartinHjelmare
left a comment
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!
|
Test failures are unrelated as noted above. Merging. |
Type of change
Additional information
This PR adds support for detecting availability of the gateway and/or sensor data.
So far only
sensorandbinary_sensorentities will report whether or not their data is included in the status report. Theclimateentity is now prepared for support as well, but it will require an update of thepyotgwlibrary before it starts working. This update will be provided in a separate PR.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: