mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-17 23:50:42 +08:00
fix: fix miot client i18n logic
This commit is contained in:
parent
8c0461e88c
commit
ff5e4c7ab1
@ -239,14 +239,14 @@ class MIoTClient:
|
|||||||
# Integration need to be add again
|
# Integration need to be add again
|
||||||
raise MIoTClientError('load_user_config_async error')
|
raise MIoTClientError('load_user_config_async error')
|
||||||
_LOGGER.debug('user config, %s', json.dumps(self._user_config))
|
_LOGGER.debug('user config, %s', json.dumps(self._user_config))
|
||||||
# Load cache device list
|
|
||||||
await self.__load_cache_device_async()
|
|
||||||
# MIoT i18n client
|
# MIoT i18n client
|
||||||
self._i18n = MIoTI18n(
|
self._i18n = MIoTI18n(
|
||||||
lang=self._entry_data.get(
|
lang=self._entry_data.get(
|
||||||
'integration_language', DEFAULT_INTEGRATION_LANGUAGE),
|
'integration_language', DEFAULT_INTEGRATION_LANGUAGE),
|
||||||
loop=self._main_loop)
|
loop=self._main_loop)
|
||||||
await self._i18n.init_async()
|
await self._i18n.init_async()
|
||||||
|
# Load cache device list
|
||||||
|
await self.__load_cache_device_async()
|
||||||
# MIoT oauth client instance
|
# MIoT oauth client instance
|
||||||
self._oauth = MIoTOauthClient(
|
self._oauth = MIoTOauthClient(
|
||||||
client_id=OAUTH2_CLIENT_ID,
|
client_id=OAUTH2_CLIENT_ID,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user