feat: refactor to a hub model

This commit is contained in:
Richard Mann
2026-04-09 11:03:33 +10:00
parent acb2c5ff52
commit e2bb3b5592
12 changed files with 357 additions and 556 deletions

View File

@@ -9,6 +9,10 @@ MFCT_ID: Final[int] = 2073
TIMEOUT: Final[int] = 5
CONF_HOME_KEY: Final[str] = "home_key"
CONF_HUB_URL: Final[str] = "hub_url"
# dispatcher signal for newly discovered shades (format with entry_id)
SIGNAL_NEW_SHADE: Final[str] = f"{DOMAIN}_new_shade_{{entry_id}}"
# attributes (do not change)
ATTR_RSSI: Final[str] = "rssi"