|
发表于 2025-3-7 11:40:24
|
显示全部楼层
日志记录器: homeassistant.components.light
来源: helpers/entity_platform.py:366
集成: 灯光 (文档, 问题)
首次出现: 10:03:36 (1 次总计出现)
上次记录: 10:03:36
Error while setting up aqara_bridge platform for light: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/aqara_bridge/light.py", line 25, in async_setup_entry
await manager.async_add_entities(
config_entry, TYPE, cls_entities, async_add_entities
)
File "/config/custom_components/aqara_bridge/core/aiot_manager.py", line 660, in async_add_entities
instance = t(
self._hass,
...<2 lines>...
**params[j].get(MK_INIT_PARAMS) or {},
)
File "/config/custom_components/aqara_bridge/light.py", line 32, in __init__
AiotToggleableEntityBase.__init__(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self, hass, device, res_params, TYPE, channel, **kwargs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/aqara_bridge/core/aiot_manager.py", line 351, in __init__
super().__init__(hass, device, res_params, type_name, channel=channel, **kwargs)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/aqara_bridge/core/aiot_manager.py", line 111, in __init__
resource_name = device.get_resource_name(resource_id)
File "/config/custom_components/aqara_bridge/core/aiot_manager.py", line 89, in get_resource_name
for r in self.resource_names:
^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable |
|