Improve config flow UX for multi-shade setups
Reuse the home key from already-configured shades so adding subsequent shades skips the key step. Show human-readable shade names from the hub in the device picker. Allow selecting multiple shades at once instead of repeating the flow for each one. Default to hub fetch as the key method.
This commit is contained in:
@@ -8,10 +8,7 @@ LOGGER: Final = logging.getLogger(__package__)
|
||||
MFCT_ID: Final[int] = 2073
|
||||
TIMEOUT: Final[int] = 5
|
||||
|
||||
# put the key here, needs to be 16 bytes long, e.g.
|
||||
# HOME_KEY: Final[bytes] = b"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
|
||||
HOME_KEY: Final[bytes] = b""
|
||||
|
||||
CONF_HOME_KEY: Final[str] = "home_key"
|
||||
|
||||
# attributes (do not change)
|
||||
ATTR_RSSI: Final[str] = "rssi"
|
||||
|
||||
Reference in New Issue
Block a user