From aeb967510fea4d0ed110f8a1655995855315db85 Mon Sep 17 00:00:00 2001 From: tr4nt0r <4445816+tr4nt0r@users.noreply.github.com> Date: Wed, 11 Feb 2026 08:36:16 +0100 Subject: [PATCH] Fix unhashable type: 'Metric' error --- pythonkuma/uptimekuma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonkuma/uptimekuma.py b/pythonkuma/uptimekuma.py index f15b2e6..0aa9e9d 100644 --- a/pythonkuma/uptimekuma.py +++ b/pythonkuma/uptimekuma.py @@ -95,7 +95,7 @@ async def metrics(self) -> dict[str | int, UptimeKumaMonitor]: raise UptimeKumaConnectionException from e try: - metrics = set(text_string_to_metric_families(await request.text())) + metrics = list(text_string_to_metric_families(await request.text())) except ValueError as e: raise UptimeKumaParseException from e