Skip to content

Commit

Permalink
Merge pull request #1526 from folfy/bugfix/diagnostics
Browse files Browse the repository at this point in the history
Hotfix diagnostic data export - #1469
  • Loading branch information
KartoffelToby authored Jan 3, 2025
2 parents 6d64590 + e5356b6 commit 134ef77
Showing 1 changed file with 7 additions and 5 deletions.
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

0 comments on commit 134ef77

Please sign in to comment.