-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig_flow.py
More file actions
32 lines (22 loc) · 860 Bytes
/
Copy pathconfig_flow.py
File metadata and controls
32 lines (22 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""Config Flow for Taco bluetooth devices."""
import logging
from homeassistant.helpers.selector import (
TextSelectorType,
)
from .src.ble_config_flow import BleConfigFlow, AdditionalInfo
from .const import DOMAIN, taco_service_info_decrypter
_LOGGER = logging.getLogger(__name__)
CONF_TACO_DEVICE_PASSWORD = "ble_config_device_password"
class TacoConfigFlow(BleConfigFlow, domain=DOMAIN):
"""The actual config flow used to setup Taco devices in home assistant."""
def __init__(self):
super().__init__(
decrypter=taco_service_info_decrypter,
additional_info=[
AdditionalInfo(
text_selector_key=CONF_TACO_DEVICE_PASSWORD,
text_selector_type=TextSelectorType.PASSWORD,
is_required=False,
)
],
)