From 5b946f526716edefd4546404d036c956ba108d3b Mon Sep 17 00:00:00 2001 From: dougiteixeira <31328123+dougiteixeira@users.noreply.github.com> Date: Fri, 10 Nov 2023 02:41:02 -0300 Subject: [PATCH] Corrects the timestamp in the diagnostics file. --- custom_components/proxmoxve/diagnostics.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/proxmoxve/diagnostics.py b/custom_components/proxmoxve/diagnostics.py index 6a8ee11..e796e87 100644 --- a/custom_components/proxmoxve/diagnostics.py +++ b/custom_components/proxmoxve/diagnostics.py @@ -82,8 +82,7 @@ async def async_get_config_entry_diagnostics( devices.append({"device": asdict(device), "entities": entities}) return { - "source": "config_entry", - "timestamp": datetime.datetime.now, + "timestamp": datetime.datetime.now(), "config_entry": async_redact_data(config_entry.data, TO_REDACT_CONFIG), "options": async_redact_data(config_entry.options, TO_REDACT_CONFIG), "devices": async_redact_data(devices, TO_REDACT_DATA),