Separate words with underscore in onewire (#72758)
This commit is contained in:
parent
3ea304aaf1
commit
cf27b82d2f
5 changed files with 28 additions and 28 deletions
|
@ -19,7 +19,7 @@ async def async_get_config_entry_diagnostics(
|
|||
hass: HomeAssistant, entry: ConfigEntry
|
||||
) -> dict[str, Any]:
|
||||
"""Return diagnostics for a config entry."""
|
||||
onewirehub: OneWireHub = hass.data[DOMAIN][entry.entry_id]
|
||||
onewire_hub: OneWireHub = hass.data[DOMAIN][entry.entry_id]
|
||||
|
||||
return {
|
||||
"entry": {
|
||||
|
@ -27,7 +27,7 @@ async def async_get_config_entry_diagnostics(
|
|||
"data": async_redact_data(entry.data, TO_REDACT),
|
||||
"options": {**entry.options},
|
||||
},
|
||||
"devices": [asdict(device_details) for device_details in onewirehub.devices]
|
||||
if onewirehub.devices
|
||||
"devices": [asdict(device_details) for device_details in onewire_hub.devices]
|
||||
if onewire_hub.devices
|
||||
else [],
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue