From b78ae30085e49a9e78eb56e6d432c2a09d444228 Mon Sep 17 00:00:00 2001 From: dev Date: Mon, 9 Sep 2024 00:27:50 +0200 Subject: [PATCH] fix: use enum instead of backports addresses https://developers.home-assistant.io/blog/2024/04/08/deprecated-backports-and-typing-aliases/ --- custom_components/hafas/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/hafas/config_flow.py b/custom_components/hafas/config_flow.py index d8cf161..b8df77d 100644 --- a/custom_components/hafas/config_flow.py +++ b/custom_components/hafas/config_flow.py @@ -3,6 +3,7 @@ import logging from typing import Any +from enum import StrEnum from pyhafas import HafasClient from pyhafas.profile import DBProfile, KVBProfile, VSNProfile @@ -10,7 +11,6 @@ import voluptuous as vol from homeassistant import config_entries -from homeassistant.backports.enum import StrEnum from homeassistant.const import CONF_OFFSET from homeassistant.core import HomeAssistant from homeassistant.data_entry_flow import FlowResult