|
日志记录器: homeassistant.config_entries
来源: config_entries.py:640
首次出现: 17:03:51 (1 次总计出现)
上次记录: 17:03:51
Error setting up entry 192.168.31.201 for fn_nas
Traceback (most recent call last):
File "/config/custom_components/fn_nas/coordinator.py", line 183, in run_command
conn = await self.get_ssh_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fn_nas/coordinator.py", line 104, in get_ssh_connection
return await self.get_ssh_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fn_nas/coordinator.py", line 104, in get_ssh_connection
return await self.get_ssh_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fn_nas/coordinator.py", line 104, in get_ssh_connection
return await self.get_ssh_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 972 more times]
File "/config/custom_components/fn_nas/coordinator.py", line 103, in get_ssh_connection
await asyncio.sleep(0.1)
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 714, in sleep
h = loop.call_later(delay,
futures._set_result_unless_cancelled,
future, result)
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 795, in call_later
timer = self.call_at(self.time() + delay, callback, *args,
context=context)
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 812, in call_at
timer = events.TimerHandle(when, callback, args, self, context)
File "/usr/local/lib/python3.13/asyncio/events.py", line 114, in __init__
super().__init__(callback, args, loop, context)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/events.py", line 45, in __init__
if self._loop.get_debug():
~~~~~~~~~~~~~~~~~~~~^^
RecursionError: maximum recursion depth exceeded
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fn_nas/__init__.py", line 13, in async_setup_entry
await coordinator.async_config_entry_first_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 306, in async_config_entry_first_refresh
await self._async_refresh(
log_failures=False, raise_on_auth_failed=True, raise_on_entry_error=True
)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fn_nas/coordinator.py", line 261, in _async_update_data
disks = await self.disk_manager.get_disks_info()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fn_nas/disk_manager.py", line 165, in get_disks_info
await self._get_full_disk_info(disk_info, device_path)
File "/config/custom_components/fn_nas/disk_manager.py", line 255, in _get_full_disk_info
info_output = await self.coordinator.run_command(f"smartctl -i {device_path}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fn_nas/coordinator.py", line 222, in run_command
return await self.run_command(command, retries-1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fn_nas/coordinator.py", line 183, in run_command
conn = await self.get_ssh_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fn_nas/coordinator.py", line 104, in get_ssh_connection
return await self.get_ssh_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fn_nas/coordinator.py", line 104, in get_ssh_connection
return await self.get_ssh_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fn_nas/coordinator.py", line 104, in get_ssh_connection
return await self.get_ssh_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 10 more times]
File "/config/custom_components/fn_nas/coordinator.py", line 103, in get_ssh_connection
await asyncio.sleep(0.1)
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 718, in sleep
return await future
^^^^^^^^^^^^
asyncio.exceptions.CancelledError |
|