Skip to content

AttributeError: 'NoneType' object has no attribute 'copy' #3

@ChrisB85

Description

@ChrisB85

Home Assistant 2025.6 is throwing an error:
aimp: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 788, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1306, in async_device_update await hass.async_add_executor_job(self.update) 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/aimp_custom_component/media_player.py", line 144, in update self.update_playinfo() ~~~~~~~~~~~~~~~~~~~~^^ File "/config/custom_components/aimp_custom_component/media_player.py", line 169, in update_playinfo self._playinfo = resp.copy() ^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'copy'

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