niceboygithub / AqaraGateway

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

Network disconnected. Gateway cannot be connected. #312

Open GavinIves opened 2 weeks ago

GavinIves commented 2 weeks ago

I use an Ethernet cable to connect the router and the network management. Because I restart the router once a week, the plugin will be disconnected and cannot reconnect. You must re-add the gateway in HA. My gateway is M2 2022 POE, and HA is the latest

image

After restarting, click Reload and the error is as follows logs only one line

2024-11-07 11:19:08.389 ERROR (MainThread) [custom_components.aqara_gateway.core.gateway] Can not connecto the telnet of the gateway (10.123.2.5)!

The following is the log error reported during restart

2024-11-07 11:11:00.444 ERROR (MainThread) [homeassistant.components.remote] Error adding entity aqara_gateway.0x54ef441000d9f1a7_pair for domain remote with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.445 ERROR (MainThread) [homeassistant.components.switch] Error adding entity aqara_gateway.0x54ef441000c1d08e_channel 1 for domain switch with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.445 ERROR (MainThread) [homeassistant.components.switch] Error adding entity aqara_gateway.0x54ef441000c1d08e_channel 2 for domain switch with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.446 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entity aqara_gateway.0x54ef441000c1d08e_switch for domain binary_sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.446 ERROR (MainThread) [homeassistant.components.switch] Error adding entity aqara_gateway.0x54ef441000940591_channel 1 for domain switch with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.447 ERROR (MainThread) [homeassistant.components.switch] Error adding entity aqara_gateway.0x54ef441000940591_channel 2 for domain switch with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.447 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entity aqara_gateway.0x54ef441000940591_switch for domain binary_sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.448 ERROR (MainThread) [homeassistant.components.switch] Error adding entity aqara_gateway.0x54ef441000cc5a33_channel 1 for domain switch with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.448 ERROR (MainThread) [homeassistant.components.switch] Error adding entity aqara_gateway.0x54ef441000cc5a33_channel 2 for domain switch with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.448 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entity aqara_gateway.0x54ef441000cc5a33_switch for domain binary_sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.449 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity aqara_gateway.0x54ef44100053512b_illuminance for domain sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.449 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entity aqara_gateway.0x54ef44100053512b_motion for domain binary_sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.451 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity aqara_gateway.0x54ef44100053512b_battery for domain sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.452 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity aqara_gateway.0x54ef441000dfb9db_illuminance for domain sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.453 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entity aqara_gateway.0x54ef441000dfb9db_motion for domain binary_sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.453 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity aqara_gateway.0x54ef441000dfb9db_battery for domain sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.454 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity aqara_gateway.0x54ef44100056cce5_illuminance for domain sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.454 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entity aqara_gateway.0x54ef44100056cce5_motion for domain binary_sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.455 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity aqara_gateway.0x54ef44100056cce5_battery for domain sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.455 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entity aqara_gateway.0x158d00066b10db_switch for domain binary_sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.456 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity aqara_gateway.0x158d00066b10db_battery for domain sensor with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
2024-11-07 11:11:00.464 WARNING (MainThread) [homeassistant.components.cover] Updating xiaomi_miot cover took longer than the scheduled update interval 0:00:02
2024-11-07 11:11:00.466 ERROR (MainThread) [custom_components.xiaomi_miot.humidifier] 加湿器(xiaomi.humidifier.airmx): Got MiioException while fetching the state: Unable to discover the device 10.123.3.45, mapping: {'humidifier.on': {'siid': 2, 'piid': 1}, 'humidifier.fault': {'siid': 2, 'piid': 2}, 'humidifier.mode': {'siid': 2, 'piid': 3}, 'humidifier.target_humidity': {'siid': 2, 'piid': 6}, 'humidifier.water_level': {'siid': 2, 'piid': 7}, 'humidifier.overwet_protect': {'siid': 2, 'piid': 10}, 'humidifier.automatic_air_drying': {'siid': 2, 'piid': 12}, 'humidifier.air_dry_remain_time': {'siid': 2, 'piid': 13}, 'wash.wash_water_tank': {'siid': 19, 'piid': 1}, 'descale.on': {'siid': 17, 'piid': 1}, 'descale.remain_time': {'siid': 17, 'piid': 2}, 'descale.clean_water_tank': {'siid': 17, 'piid': 3}, 'clean.on': {'siid': 16, 'piid': 1}, 'clean.remain_time': {'siid': 16, 'piid': 2}, 'clean.clean_water_tank': {'siid': 16, 'piid': 3}, 'filter.filter_life_level': {'siid': 18, 'piid': 1}, 'indicator_light.on': {'siid': 15, 'piid': 1}, 'indicator_light.mode': {'siid': 15, 'piid': 2}, 'indicator_light.brightness': {'siid': 15, 'piid': 3}, 'indicator_light.auto_lights_off': {'siid': 15, 'piid': 4}, 'alarm': {'siid': 14, 'piid': 1}, 'alarm.auto_alarm_off': {'siid': 14, 'piid': 2}, 'delay': {'siid': 12, 'piid': 1}, 'delay.delay_time': {'siid': 12, 'piid': 2}, 'delay.delay_remain_time': {'siid': 12, 'piid': 3}, 'physical_controls_locked': {'siid': 11, 'piid': 1}, 'environment.relative_humidity': {'siid': 3, 'piid': 1}, 'environment.temperature': {'siid': 3, 'piid': 2}}, max_properties: 10/28
2024-11-07 11:11:00.491 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Error adding entity aqara_gateway.0x54ef441000d9f1a7_alarm for domain alarm_control_panel with platform aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 767, in _async_add_entity
    device = dev_reg.async_get(self.hass).async_get_or_create(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 740, in async_get_or_create
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Can't link device to unknown config entry 01JBKWCAQMF192Z2GZ68EX1KX6
anhnvme commented 2 weeks ago

+1 when upgrade to 2024.11.0.

Villi342 commented 2 weeks ago

+1 when upgrade to 2024.11.0.

Villi342 commented 2 weeks ago

I deleted the integration, reinstalled version 0.2.8, now I see the gateway (M1S) and the lock (N100 Zigbee), but data is not transmitted from the lock to HA (status: unknown)

anhnvme commented 2 weeks ago

I deleted the integration, reinstalled version 0.2.8, now I see the gateway (M1S) and the lock (N100 Zigbee), but data is not transmitted from the lock to HA (status: unknown)

just trigger the lock. do something (unlock/lock)

i just downgrade to 2024.10.2 everything work. i think just more 1 week author will fixed. my home still stable

vit5041 commented 2 weeks ago

it works in latest release, thanks for quick fix!

GavinIves commented 2 weeks ago

image Why does it still show 0.2.7 after I updated it?

vit5041 commented 2 weeks ago

Why does it still show 0.2.7 after I updated it?

Same for me

almirus commented 1 week ago

same

2024-11-08 17:21:52.876 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Camera-Hub-G2H-E718 for aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/aqara_gateway/__init__.py", line 67, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, DOMAINS)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2237, in async_forward_entry_setups
    await integration.async_get_platforms(platforms)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1181, in async_get_platforms
    import_future.result()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1181, in async_get_platforms
    import_future.result()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1181, in async_get_platforms
    import_future.result()
  [Previous line repeated 5 more times]
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1169, in async_get_platforms
    platforms.update(self._load_platforms(platform_names))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1094, in _load_platforms
    platform_name: self._load_platform(platform_name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1268, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1300, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/aqara_gateway/binary_sensor.py", line 9, in <module>
    from homeassistant.config import DATA_CUSTOMIZE
ImportError: cannot import name 'DATA_CUSTOMIZE' from 'homeassistant.config' (/usr/src/homeassistant/homeassistant/config.py)
2024-11-08 17:23:40.279 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Camera-Hub-G2H-E718 for aqara_gateway
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/aqara_gateway/__init__.py", line 67, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, DOMAINS)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2237, in async_forward_entry_setups
    await integration.async_get_platforms(platforms)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1181, in async_get_platforms
    import_future.result()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1181, in async_get_platforms
    import_future.result()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1181, in async_get_platforms
    import_future.result()
  [Previous line repeated 5 more times]
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1169, in async_get_platforms
    platforms.update(self._load_platforms(platform_names))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1094, in _load_platforms
    platform_name: self._load_platform(platform_name)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1268, in _load_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 1300, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/aqara_gateway/binary_sensor.py", line 9, in <module>
    from homeassistant.config import DATA_CUSTOMIZE
ImportError: cannot import name 'DATA_CUSTOMIZE' from 'homeassistant.config' (/usr/src/homeassistant/homeassistant/config.py)