Closed agners closed 2 months ago
If no SSD is selected this leads to:
This is certainly not ideal, but this should be handled on the frontend. it makes no sense to allow saving an enabled wireless network setting without an SSID :man_shrugging:
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks :+1:
Proposed change
Currently, the frontend potentially provides no WiFi settings dictionary but still tries to update other (IP address) settings on the interface. This leads to a stack trace since network manager is not able to fetch the WiFi settings from the settings dictionary. This change simply only sets the field we can and let NetworkManager provide an error.
Also allow to disable a network interface which has no configuration. This avoids an error when switching to auto and back to disabled then press save on a new wireless network interface.
Type of change
Additional information
Checklist
ruff format supervisor tests
)If API endpoints or add-on configuration are added/changed:
Summary by CodeRabbit
Summary by CodeRabbit
Bug Fixes
Performance Improvements
Tests