Skip to content
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

Hotfix diagnostic data export - #1469 #1526

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions custom_components/better_thermostat/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ async def async_get_config_entry_diagnostics(
trv = hass.states.get(trv_id["trv"])
if trv is None:
continue
_adapter_name = await load_adapter(
hass, trv_id["integration"], trv_id["trv"], True
)
trv_id["adapter"] = _adapter_name
# TODO: this does nothing but return trv_id["integration"] as adapter_name
# -> removing this for now, to fix diagnostic export
# _adapter_name = await load_adapter(
# hass, trv_id["integration"], trv_id["trv"], True
# )
# trv_id["adapter"] = _adapter_name
trvs[trv_id["trv"]] = {
"name": trv.name,
"state": trv.state,
"attributes": trv.attributes,
"bt_config": trv_id["advanced"],
"bt_adapter": trv_id["adapter"],
# "bt_adapter": trv_id["adapter"],
"bt_integration": trv_id["integration"],
"model": trv_id["model"],
}
Expand Down
Loading