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 Landis+Gyr MWh-readings from ultraheat-api #89937
Conversation
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Remove manifest cleanup from PR Remove added device class from this PR Restore entity registry fixture Replace filter by attr_entity_registry_enabled_default
It's great to seeing this progress but apparently this PR isn't merged jet. does that imply that the T550 model will not be supported with the next release of HA? |
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 👍
The merge window for Home Assistant core 2023.4 closed just yesterday, so this will be included in Home Assistant core 2023.5 |
native_unit_of_measurement=UnitOfEnergy.MEGA_WATT_HOUR, | ||
device_class=SensorDeviceClass.ENERGY, | ||
state_class=SensorStateClass.TOTAL, | ||
value_fn=lambda res: getattr(res, "heat_usage_mwh", None), |
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.
In a follow-up PR, I think you should remove all the getattr
.
value_fn=lambda res: res.heat_usage_mwh,
value_fn=lambda res: res.volume_usage_m3,
...
value_fn=lambda res: res.settings_and_firmware,
Proposed change
This change adds support for the T550 model by reading MWh-values whenever supplied by the ultraheat-api.
Type of change
Additional information
This PR fixes or closes issue: fixes
Landis+Gyr Heat Meter - Update for sensor.heat_meter_heat_usage_gj fails #81464
Landis+Gyr Heat Meter not working with meters that report mwh #85548
Landis+Gyr Heat Meter Info not showing data #84130
Support for Landis+Gyr UltraHeat T550 vpathuis/ultraheat#7
Landis+Gyr Heat Meter - Update for sensor.heat_meter_heat_usage_gj fails #81464
Landis+Gyr Heat Meter fails to collect data #85012
sensor.heat_meter_heat_usage_gj as gas source resulting in Unexpected device class & Unexpected state class warnings #86545
This PR is related to issue:
Link to documentation pull request:
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
.To help with the load of incoming pull requests: