|
|
@@ -44,18 +44,9 @@ def _async_get_diagnostics(
|
|
|
"host": REDACTED,
|
|
|
}
|
|
|
|
|
|
- if device:
|
|
|
- tuya_device_id = next(iter(device.identitifers))[1]
|
|
|
- data |= _async_device_as_dict(
|
|
|
- hass, hass_data.device_manager.device_map[tuya_device_id]
|
|
|
- )
|
|
|
- else:
|
|
|
- data.update(
|
|
|
- devices=[
|
|
|
- _async_device_as_dict(hass, device)
|
|
|
- for device in hass_data.device_manager.device_map.values()
|
|
|
- ]
|
|
|
- )
|
|
|
+ # TODO: investigate what device entry holds
|
|
|
+ data |= _async_device_as_dict(hass, hass_data["device"])
|
|
|
+
|
|
|
return data
|
|
|
|
|
|
|