From a149d67b30b8e9c4c1bddcca64fa9a81759cb48f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 14 Feb 2023 14:26:03 -0600 Subject: [PATCH] Fix twentemilieu diagnostics with python 3.11 (#88121) --- homeassistant/components/twentemilieu/diagnostics.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/twentemilieu/diagnostics.py b/homeassistant/components/twentemilieu/diagnostics.py index 5a47e5282a4..acc3f802796 100644 --- a/homeassistant/components/twentemilieu/diagnostics.py +++ b/homeassistant/components/twentemilieu/diagnostics.py @@ -22,6 +22,8 @@ async def async_get_config_entry_diagnostics( entry.data[CONF_ID] ] return { - str(waste_type): [waste_date.isoformat() for waste_date in waste_dates] + f"WasteType.{waste_type.name}": [ + waste_date.isoformat() for waste_date in waste_dates + ] for waste_type, waste_dates in coordinator.data.items() }