Area auto-assigned / Cannot leave Area Blank
System Health details
<couldn't figure out where/what to copy>
Running HAOS on Raspberry Pi 5 Latest version of HA-Spoolman (v1.0.0)
Checklist
- [x] I have enabled debug logging for my installation.
- [x] I have filled out the issue template to the best of my ability.
- [x] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
- [x] This issue is not a duplicate issue of currently previous issues..
Describe the issue
By default, the integration creates a new HA Area for each Location defined in Spoolman. If you clear the Area for a device that Spoolman creates, on the next background refresh the Area is once again reassigned to the Device.
If, however, you change the device's location to something else (such as I chose an existing location in my HA instance that represents the room where the printer and spools are located) then that value appears to remain unchanged on the device (as expected).
Suggest only assigning the Area on first creation of the devices or first install of the integration. Otherwise let the user clear the Area if they prefer.
This relates to my testing & validation of the following discussion: https://github.com/Disane87/spoolman-homeassistant/discussions/144
In testing to ensure the latest update corrected 'orphan' entities when I moved them in Spoolman, I noticed some other
Reproduction steps
- Install HA-Spoolman integration and connect/configure
- Once Spoolman devices are created, change one of the devices (Clear the Area field). Leave it blank
- On next refresh - the area will be repopulated by the integration.
Debug logs
not sure whether to pull during a repro?
Diagnostics dump
No response