From e17a48b3ca7d6a9523bf1b895440e4838323049a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 14 Feb 2023 09:41:34 -0600 Subject: [PATCH] Fix unifiprotect with python 3.11 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 fd85a77accf9c..7bc54aa7afe1c 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})