Error when trying to create a Backup

Hi,

When trying to create a Backup using the UI i see in the logs this error :

Logger: homeassistant.components.websocket_api.http.connection
Source: components/zha/backup.py:17
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:28:52 (2 occurrences)
Last logged: 11:29:48

[1734637696] Error handling message: Unknown error (unknown_error) from 192.168.1.200 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36)
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/backup/websocket.py", line 70, in handle_create
    backup = await manager.generate_backup()
  File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/backup/manager.py", line 172, in generate_backup
    raise result
  File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/zha/backup.py", line 17, in async_pre_backup
    await zha_gateway.application_controller.backups.create_backup(load_devices=True)
  File "/srv/homeassistant/lib/python3.10/site-packages/zigpy/backups.py", line 128, in create_backup
    await self.app.load_network_info(load_devices=load_devices)
  File "/srv/homeassistant/lib/python3.10/site-packages/zigpy_znp/zigbee/application.py", line 159, in load_network_info
    await self._znp.load_network_info(load_devices=load_devices)
  File "/srv/homeassistant/lib/python3.10/site-packages/zigpy_znp/api.py", line 228, in load_network_info
    await self._load_network_info(load_devices=load_devices)
  File "/srv/homeassistant/lib/python3.10/site-packages/zigpy_znp/api.py", line 203, in _load_network_info
    for dev in await security.read_devices(self, tclk_seed=tclk_seed):
  File "/srv/homeassistant/lib/python3.10/site-packages/zigpy_znp/znp/security.py", line 292, in read_devices
    raise ValueError(f"Unexpected entry type: {entry.type}")
ValueError: Unexpected entry type: 4

I’m using Home assistant 2023.2.5 installed on a Raspberry 3 :


Version	core-2023.2.5
Type d'installation	Home Assistant Core
Développement	false
Supervisor	false
Docker	false
Utilisateur	homeassistant
Environnement virtuel	true
Version de Python	3.10.10
Famille du système d'exploitation	Linux
Version du système d'exploitation	5.15.84-v7+
Architecture du processeur	armv7l
Fuseau horaire	Europe/Paris
Répertoire de configuration	/home/homeassistant/.homeassistant

Any ideas about this error ?

Thank you

Any idea about this bug please ?

Did you find a solution to this? I’m seeing the same error and am running a similar setup.

Raspberry Pi 3 setup (although I’m running in a docker container).