perf: cloud mqtt broker host constant value (#1530)
Some checks failed
Tests / check-rule-format (push) Failing after 1s
Validate / validate-hassfest (push) Failing after 0s
Validate / validate-hacs (push) Failing after 10s
Validate / validate-lint (push) Failing after -1s
Validate / validate-setup (push) Failing after 2s

This commit is contained in:
Li Shuzhen
2025-12-04 12:19:21 +08:00
committed by GitHub
parent d5c5e387c2
commit 30ce1b4970
16 changed files with 43 additions and 34 deletions

View File

@@ -60,6 +60,7 @@ NETWORK_REFRESH_INTERVAL: int = 30
OAUTH2_CLIENT_ID: str = '2882303761520251711'
OAUTH2_AUTH_URL: str = 'https://account.xiaomi.com/oauth2/authorize'
DEFAULT_OAUTH2_API_HOST: str = 'ha.api.io.mi.com'
DEFAULT_CLOUD_BROKER_HOST: str = 'ha.mqtt.io.mi.com'
# seconds, 14 days
SPEC_STD_LIB_EFFECTIVE_TIME = 3600*24*14