Skip to content

Commit ca9d1ae

Browse files
committed
Fix hassfest check
1 parent 7cbf845 commit ca9d1ae

10 files changed

Lines changed: 14 additions & 10 deletions

File tree

custom_components/xiaomi_gateway3/config_flow.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ async def async_step_cloud_verify(self, user_input: dict = None):
147147

148148
async def async_step_token(self, user_input: dict = None):
149149
"""GUI > Configuration > Integrations > Plus > Xiaomi Gateway 3"""
150-
kwargs = {}
150+
kwargs = {
151+
"description_placeholders": {
152+
"link": "https://github.com/AlexxIT/XiaomiGateway3#obtain-mi-home-device-token",
153+
},
154+
}
151155

152156
if user_input:
153157
if "key" not in user_input:

custom_components/xiaomi_gateway3/translations/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242
},
4343
"token": {
44-
"description": "You can obtain Mi Home token automatically with [Cloud integration](https://github.com/AlexxIT/XiaomiGateway3#obtain-mi-home-device-token) or [manually](https://github.com/Maxmudjon/com.xiaomi-miio/blob/master/docs/obtain_token.md).",
44+
"description": "You can obtain Mi Home token automatically with [Cloud integration]({link}).",
4545
"data": {
4646
"host": "Host",
4747
"token": "Token",

custom_components/xiaomi_gateway3/translations/hu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
},
4242
"token": {
43-
"description": "A Mi Home tokent automatikusan beszerezheti a [Cloud integrációval] (https://github.com/AlexxIT/XiaomiGateway3#obtain-mi-home-device-token), vagy [manuálisan](https://github.com/Maxmudjon/com.xiaomi-miio/blob/master/docs/obtain_token.md).",
43+
"description": "A Mi Home tokent automatikusan beszerezheti a [Cloud integrációval]({link}).",
4444
"data": {
4545
"host": "Hoszt",
4646
"token": "Token"

custom_components/xiaomi_gateway3/translations/pl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
},
4242
"token": {
43-
"description": "Możesz uzyskać token automatycznie używając [danych logowania do konta Xiaomi](https://github.com/AlexxIT/XiaomiGateway3#obtain-mi-home-device-token) bądź [ręcznie](https://github.com/Maxmudjon/com.xiaomi-miio/blob/master/docs/obtain_token.md).",
43+
"description": "Możesz uzyskać token automatycznie używając [danych logowania do konta Xiaomi]({link}).",
4444
"data": {
4545
"host": "Host (Adres IP bramki)",
4646
"token": "Token"

custom_components/xiaomi_gateway3/translations/pt-BR.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
},
4242
"token": {
43-
"description": "Você pode obter o token Mi Home automaticamente com [integração na nuvem](https://github.com/AlexxIT/XiaomiGateway3#obtain-mi-home-device-token) ou [manualmente](https://github.com/Maxmudjon/ com.xiaomi-miio/blob/master/docs/obtain_token.md).",
43+
"description": "Você pode obter o token Mi Home automaticamente com [integração na nuvem]({link}).",
4444
"data": {
4545
"host": "Host",
4646
"token": "Token"

custom_components/xiaomi_gateway3/translations/ro.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
},
4242
"token": {
43-
"description": "Poti obtine tokenul Mi Home in mod automat prin [Cloud integration](https://github.com/AlexxIT/XiaomiGateway3#obtain-mi-home-device-token) sau [manual](https://github.com/Maxmudjon/com.xiaomi-miio/blob/master/docs/obtain_token.md).",
43+
"description": "Poti obtine tokenul Mi Home in mod automat prin [Cloud integration]({link}).",
4444
"data": {
4545
"host": "IP Gateway",
4646
"token": "Token"

custom_components/xiaomi_gateway3/translations/ru.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
},
4242
"token": {
43-
"description": "Вы можете получить Mi Home токен автоматически с помощью [облачной интеграции](https://github.com/AlexxIT/XiaomiGateway3#obtain-mi-home-device-token) или [вручную](https://github.com/Maxmudjon/com.xiaomi-miio/blob/master/docs/obtain_token.md).",
43+
"description": "Вы можете получить Mi Home токен автоматически с помощью [облачной интеграции]({link}).",
4444
"data": {
4545
"host": "IP-адрес",
4646
"token": "Токен",

custom_components/xiaomi_gateway3/translations/ua.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
},
4242
"token": {
43-
"description": "[Отримайте](https://github.com/Maxmudjon/com.xiaomi-miio/blob/master/docs/obtain_token.md) Mi Home токен.",
43+
"description": "[Отримайте]({link}) Mi Home токен.",
4444
"data": {
4545
"host": "IP-адреса",
4646
"token": "Токен"

custom_components/xiaomi_gateway3/translations/zh-Hans.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
},
4242
"token": {
43-
"description": "可以通过 [添加小米云账号](https://github.com/AlexxIT/XiaomiGateway3#obtain-mi-home-device-token) 自动或 [手动](https://github.com/Maxmudjon/com.xiaomi-miio/blob/master/docs/obtain_token.md) 获取网关Token。请阅读 [已支持的网关固件版本](https://github.com/AlexxIT/XiaomiGateway3#supported-firmwares)",
43+
"description": "可以通过 [添加小米云账号]({link}) 获取网关Token。请阅读 已支持的网关固件版本",
4444
"data": {
4545
"host": "网关IP",
4646
"token": "Token",

custom_components/xiaomi_gateway3/translations/zh-Hant.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242
},
4343
"token": {
44-
"description": "可以透過 [雲端整合](https://github.com/AlexxIT/XiaomiGateway3#obtain-mi-home-device-token) 自動或 [手動](https://github.com/Maxmudjon/com.xiaomi-miio/blob/master/docs/obtain_token.md) 取得網關 Token。",
44+
"description": "可以透過 [雲端整合]({link}) 取得網關 Token。",
4545
"data": {
4646
"host": "網關IP",
4747
"token": "Token",

0 commit comments

Comments
 (0)