自带集成QNAP报错误了
The problem
日志记录器: homeassistant.components.qnap.coordinator 来源: helpers/update_coordinator.py:380 集成: QNAP (文档, 问题) 首次出现: 09:25:24 (17 次出现) 上次记录: 09:41:27
Unexpected error fetching qnap data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 380, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/qnap/coordinator.py", line 86, in _async_update_data return await self.hass.async_add_executor_job(self._sync_update) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/qnap/coordinator.py", line 72, in _sync_update suppress_insecure_request_warning() if not self._verify_ssl else nullcontext() File "/usr/local/lib/python3.13/contextlib.py", line 141, in enter return next(self.gen) File "/usr/src/homeassistant/homeassistant/components/qnap/coordinator.py", line 40, in suppress_insecure_request_warning with urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning): ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object does not support the context manager protocol
What version of Home Assistant Core has the issue?
25.5.0
What was the last working version of Home Assistant Core?
25.4.1
What type of installation are you running?
Home Assistant OS
Integration causing the issue
不能加载
Link to integration documentation on our website
日志记录器: homeassistant.components.qnap.coordinator 来源: helpers/update_coordinator.py:380 集成: QNAP (文档, 问题) 首次出现: 09:25:24 (17 次出现) 上次记录: 09:41:27 Unexpected error fetching qnap data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 380, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/qnap/coordinator.py", line 86, in _async_update_data return await self.hass.async_add_executor_job(self._sync_update) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/qnap/coordinator.py", line 72, in _sync_update suppress_insecure_request_warning() if not self._verify_ssl else nullcontext() File "/usr/local/lib/python3.13/contextlib.py", line 141, in enter return next(self.gen) File "/usr/src/homeassistant/homeassistant/components/qnap/coordinator.py", line 40, in suppress_insecure_request_warning with urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning): ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object does not support the context manager protocol
Diagnostics information
日志记录器: homeassistant.components.qnap.coordinator 来源: helpers/update_coordinator.py:380 集成: QNAP (文档, 问题) 首次出现: 09:25:24 (17 次出现) 上次记录: 09:41:27
Unexpected error fetching qnap data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 380, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/qnap/coordinator.py", line 86, in _async_update_data return await self.hass.async_add_executor_job(self._sync_update) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/qnap/coordinator.py", line 72, in _sync_update suppress_insecure_request_warning() if not self._verify_ssl else nullcontext() File "/usr/local/lib/python3.13/contextlib.py", line 141, in enter return next(self.gen) File "/usr/src/homeassistant/homeassistant/components/qnap/coordinator.py", line 40, in suppress_insecure_request_warning with urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning): ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object does not support the context manager protocol
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response