Skip to content

Commit

Permalink
chore: Improve multi-language translation actions (XiaoMi#256)
Browse files Browse the repository at this point in the history
* test: check bool trans integrity

* feat: add tools to update and format data

* style: sort data

* feat: update check_rule_format.py

* style: remove unuse SUPPORTED_PLATFORMS item

* test: check spec rule sort

* fix: fix py import

* feat: remove unuse code

* feat: add spec data sort
  • Loading branch information
topsworld authored Dec 20, 2024
1 parent b955c19 commit 571483b
Show file tree
Hide file tree
Showing 6 changed files with 341 additions and 205 deletions.
16 changes: 4 additions & 12 deletions custom_components/xiaomi_home/miot/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,16 @@
MANUFACTURER_EFFECTIVE_TIME = 3600*24*14

SUPPORTED_PLATFORMS: list = [
# 'alarm_control_panel',
'binary_sensor',
'button',
'climate',
# 'camera',
# 'conversation',
'cover',
# 'device_tracker',
'event',
'fan',
'humidifier',
'light',
# 'lock',
# 'media_player',
'notify',
'number',
# 'remote',
# 'scene',
'select',
'sensor',
'switch',
Expand All @@ -107,17 +99,17 @@

DEFAULT_INTEGRATION_LANGUAGE: str = 'en'
INTEGRATION_LANGUAGES = {
'zh-Hans': '简体中文',
'zh-Hant': '繁體中文',
'en': 'English',
'de': 'Deutsch',
'en': 'English',
'es': 'Español',
'fr': 'Français',
'ja': '日本語',
'nl': 'Nederlands',
'pt': 'Português',
'pt-BR': 'Português (Brasil)',
'ru': 'Русский',
'nl': 'Nederlands'
'zh-Hans': '简体中文',
'zh-Hant': '繁體中文'
}

DEFAULT_CTRL_MODE: str = 'auto'
Expand Down
Loading

0 comments on commit 571483b

Please sign in to comment.