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
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)