Skip to content

2025.2.1设备获取失败。 #2

Description

@earlzz

Core
2025.2.1
Supervisor
2025.02.0
Operating System
14.2
Frontend
20250205.0

好像不能正常使用了
2025-02-09 05:23:42.218 ERROR (MainThread) [custom_components.airproce] Unexpected error fetching airproce_devices_status 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/helpers/update_coordinator.py", line 281, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/airproce/init.py", line 30, in async_get_devices_status
return await hass.async_add_executor_job(api.get_devices_status, device_id_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/airproce/api.py", line 106, in get_devices_status
device_status = self.get_device_status(device_id).get('data')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions