mirror of
https://github.com/micahqcade/custom_vesync.git
synced 2025-06-25 20:47:51 +02:00
fix diagnostics.
This commit is contained in:
@ -18,6 +18,10 @@ async def async_get_config_entry_diagnostics(
|
||||
for type in ["fans", "outlets", "switches", "bulbs"]:
|
||||
for d in data["manager"]._dev_list[type]:
|
||||
devices[type].append(
|
||||
{"device": d.config_dict, "config": d.config, "details": d.details}
|
||||
{
|
||||
"device": d.config_dict or {},
|
||||
"config": d.config or {},
|
||||
"details": d.details or {},
|
||||
}
|
||||
)
|
||||
return devices
|
||||
|
Reference in New Issue
Block a user