niceboygithub / AqaraGateway

Aqara Gateway/Hub integration for Home Assistant
523 stars 66 forks source link

import functions used from system_info directly #300

Closed Necroneco closed 2 months ago

Necroneco commented 2 months ago

Fix the warning

2024-09-18 10:51:55.319 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'aqara_gateway' accesses hass.helpers.system_info. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from system_info directly at custom_components/aqara_gateway/__init__.py, line 177: info = await hass.helpers.system_info.async_get_system_info(), please create a bug report at https://github.com/niceboygithub/AqaraGateway/issues