Skip to content

Commit 66a2ccd

Browse files
Merge pull request #300 from Necroneco/fix-import
2 parents 8672030 + c3472ef commit 66a2ccd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/aqara_gateway/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from homeassistant.helpers import config_validation as cv
1111
from homeassistant.helpers.entity import Entity
1212
from homeassistant.helpers.entity_registry import EntityRegistry
13+
from homeassistant.helpers.system_info import async_get_system_info
1314

1415
from .core.gateway import Gateway
1516
from .core.utils import AqaraGatewayDebug
@@ -177,7 +178,7 @@ async def _setup_logger(hass: HomeAssistant):
177178
handler = AqaraGatewayDebug(hass)
178179
_LOGGER.addHandler(handler)
179180

180-
info = await hass.helpers.system_info.async_get_system_info()
181+
info = await async_get_system_info(hass)
181182
info.pop('timezone')
182183
_LOGGER.debug(f"SysInfo: {info}")
183184

0 commit comments

Comments
 (0)