mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-27 17:44:01 +08:00
Reset to current local state
This commit is contained in:
@@ -1,6 +1,3 @@
|
|||||||
|
|
||||||
#### `config_flow.py`
|
|
||||||
```python
|
|
||||||
"""Config flow for HA text AI integration."""
|
"""Config flow for HA text AI integration."""
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
@@ -21,10 +18,11 @@ from .const import (
|
|||||||
DEFAULT_REQUEST_INTERVAL,
|
DEFAULT_REQUEST_INTERVAL,
|
||||||
)
|
)
|
||||||
|
|
||||||
class HATextAIConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
class HATextAIConfigFlow(config_entries.ConfigFlow):
|
||||||
"""Handle a config flow for HA text AI."""
|
"""Handle a config flow for HA text AI."""
|
||||||
|
|
||||||
VERSION = 1
|
VERSION = 1
|
||||||
|
DOMAIN = DOMAIN # Define the domain as a class variable
|
||||||
|
|
||||||
async def async_step_user(self, user_input=None):
|
async def async_step_user(self, user_input=None):
|
||||||
"""Handle the initial step."""
|
"""Handle the initial step."""
|
||||||
|
|||||||
Reference in New Issue
Block a user