Skip to content

Commit

Permalink
Import ConfigFlowResult only for TYPE_CHECKING
Browse files Browse the repository at this point in the history
  • Loading branch information
amitfin committed Nov 3, 2024
1 parent 9b5b7fb commit 0519bcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions custom_components/oref_alert/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,18 @@
from __future__ import annotations

import contextlib
from typing import Any
from typing import TYPE_CHECKING, Any

import homeassistant.helpers.config_validation as cv
import voluptuous as vol
from homeassistant.config_entries import (
ConfigEntry,
ConfigFlow,
ConfigFlowResult,
OptionsFlow,
)
from homeassistant.config_entries import ConfigEntry, ConfigFlow, OptionsFlow
from homeassistant.core import async_get_hass, callback
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import selector

if TYPE_CHECKING:
from homeassistant.config_entries import ConfigFlowResult

from .const import (
CONF_ALERT_ACTIVE_DURATION,
CONF_AREAS,
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"IL"
],
"hide_default_branch": true,
"homeassistant": "2024.4.0",
"homeassistant": "2023.1.0",
"render_readme": true,
"zip_release": true
}

0 comments on commit 0519bcb

Please sign in to comment.