Skip to content

Failed to parse shortcut task: cannot access local variable 'map_id' where it is not associated with a value #1469

@Gatses

Description

@Gatses

Describe the bug
When rebooting HA/reconfiguring integration, an error appears in the logs.
The error appeared after updating HA to version 2026.2 and integrating to version v2.0.0b22

To Reproduce
Reboot HA/reconfigure integration.

Expected behavior
No errors in the logs.

Screenshots

Additional Information (please complete the following information)

  • Model Name [e.g. dreame.vacuum.p2028]: dreame.vacuum.r2449a
  • Firmware Version [e.g. 1156]: 4.3.9_1760
  • Home Assistant Version: core-2026.2.2
  • Configuration Type [With or without map support]: With
  • Errors or warnings shown in the HA logs (if applicable):
This error originated from a custom integration.

Logger: custom_components.dreame_vacuum.dreame.device
Source: custom_components/dreame_vacuum/dreame/device.py:5121
integration: Dreame Vacuum (documentation, issues)
First occurred: 8:12:02 PM (1 occurrence)
Last logged: 8:12:02 PM

Failed to parse shortcut task: cannot access local variable 'map_id' where it is not associated with a value

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions