From 3e8a6cb3b7bad7fc389e6077030c6653f5f0ee21 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 14 Feb 2023 10:26:14 -0600 Subject: [PATCH] Fix unifiprotect with python 3.11 (#88101) There are some breaking changes to Enum https://blog.pecar.me/python-enum needs https://github.com/AngellusMortis/pyunifiprotect/pull/263 but does not need to be in this PR --- homeassistant/components/unifiprotect/select.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/unifiprotect/select.py b/homeassistant/components/unifiprotect/select.py index fd85a77accf..7bc54aa7afe 100644 --- a/homeassistant/components/unifiprotect/select.py +++ b/homeassistant/components/unifiprotect/select.py @@ -135,7 +135,7 @@ def _get_doorbell_options(api: ProtectApiClient) -> list[dict[str, Any]]: for item in messages: msg_type = item.type.value if item.type == DoorbellMessageType.CUSTOM_MESSAGE: - msg_type = f"{DoorbellMessageType.CUSTOM_MESSAGE}:{item.text}" + msg_type = f"{DoorbellMessageType.CUSTOM_MESSAGE.value}:{item.text}" built_messages.append({"id": msg_type, "name": item.text})