Skip to content

Synlogy DSM KeyError: 'deploy_path' #34861

@FuzzyMistborn

Description

@FuzzyMistborn

The problem

On boot, I see the below error in the log. I switched over from YAML based config to entirely integration based with the 109 changes. Everything seems to be working.

Environment

  • Home Assistant Core release with the issue: 109.0
  • Last working Home Assistant Core release (if known): 108
  • Operating environment (Home Assistant/Supervised/Docker/venv): Docker
  • Integration causing this issue: SynologyDSM
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml

Traceback/Error logs

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 295, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 445, in _async_add_entity
    entity.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 297, in async_write_ha_state
    self._async_write_ha_state()  # type: ignore
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
    state = self.state
  File "/usr/src/homeassistant/homeassistant/components/synology_dsm/sensor.py", line 173, in state
    self.monitored_device
  File "/usr/local/lib/python3.7/site-packages/synology_dsm/api/storage/storage.py", line 102, in volume_disk_temp_avg
    vol_disks = self._get_disks_for_volume(volume_id)
  File "/usr/local/lib/python3.7/site-packages/synology_dsm/api/storage/storage.py", line 150, in _get_disks_for_volume
    if pool["deploy_path"] == volume_id:
KeyError: 'deploy_path'

Additional information

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions