mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Send undefined as version if auto is selected (#17148)
This commit is contained in:
parent
d427d9e7f6
commit
4588eb3b75
@ -336,11 +336,15 @@ class ViewMountDialog extends LitElement {
|
||||
private async _connectMount() {
|
||||
this._error = undefined;
|
||||
this._waiting = true;
|
||||
const mountData = { ...this._data! };
|
||||
if (mountData.type === "cifs" && mountData.version === "auto") {
|
||||
mountData.version = undefined;
|
||||
}
|
||||
try {
|
||||
if (this._existing) {
|
||||
await updateSupervisorMount(this.hass, this._data!);
|
||||
await updateSupervisorMount(this.hass, mountData);
|
||||
} else {
|
||||
await createSupervisorMount(this.hass, this._data!);
|
||||
await createSupervisorMount(this.hass, mountData);
|
||||
}
|
||||
} catch (err: any) {
|
||||
this._error = extractApiErrorMessage(err);
|
||||
|
Loading…
x
Reference in New Issue
Block a user