mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +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() {
|
private async _connectMount() {
|
||||||
this._error = undefined;
|
this._error = undefined;
|
||||||
this._waiting = true;
|
this._waiting = true;
|
||||||
|
const mountData = { ...this._data! };
|
||||||
|
if (mountData.type === "cifs" && mountData.version === "auto") {
|
||||||
|
mountData.version = undefined;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
if (this._existing) {
|
if (this._existing) {
|
||||||
await updateSupervisorMount(this.hass, this._data!);
|
await updateSupervisorMount(this.hass, mountData);
|
||||||
} else {
|
} else {
|
||||||
await createSupervisorMount(this.hass, this._data!);
|
await createSupervisorMount(this.hass, mountData);
|
||||||
}
|
}
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
this._error = extractApiErrorMessage(err);
|
this._error = extractApiErrorMessage(err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user