mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-10-27 16:10:49 +08:00
feat: add user-agent (#1804)
This commit is contained in:
@@ -45,7 +45,14 @@ off Xiaomi or its affiliates' products.
|
||||
|
||||
Constants.
|
||||
"""
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
DOMAIN: str = 'xiaomi_home'
|
||||
|
||||
INTEGRATION_VERSION: str = json.loads(
|
||||
(Path(__file__).parent.parent / 'manifest.json').read_text()
|
||||
)['version']
|
||||
DEFAULT_NAME: str = 'Xiaomi Home'
|
||||
|
||||
DEFAULT_NICK_NAME: str = 'Xiaomi'
|
||||
|
||||
Reference in New Issue
Block a user