mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-08 17:56:33 +00:00
Allow mounting CIFS as guest (#4384)
This commit is contained in:
parent
254ec2d1af
commit
4bed8c1327
@ -359,8 +359,8 @@ class CIFSMount(NetworkMount):
|
|||||||
"""Options to use to mount."""
|
"""Options to use to mount."""
|
||||||
return (
|
return (
|
||||||
super().options + [f"username={self.username}", f"password={self.password}"]
|
super().options + [f"username={self.username}", f"password={self.password}"]
|
||||||
if self.username
|
if self.username and self.password
|
||||||
else []
|
else ["guest"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -116,6 +116,7 @@ async def test_load(
|
|||||||
"mnt-data-supervisor-mounts-backup_test.mount",
|
"mnt-data-supervisor-mounts-backup_test.mount",
|
||||||
"fail",
|
"fail",
|
||||||
[
|
[
|
||||||
|
["Options", Variant("s", "guest")],
|
||||||
["Type", Variant("s", "cifs")],
|
["Type", Variant("s", "cifs")],
|
||||||
["Description", Variant("s", "Supervisor cifs mount: backup_test")],
|
["Description", Variant("s", "Supervisor cifs mount: backup_test")],
|
||||||
["What", Variant("s", "//backup.local/backups")],
|
["What", Variant("s", "//backup.local/backups")],
|
||||||
|
@ -177,6 +177,7 @@ async def test_load(
|
|||||||
"mnt-data-supervisor-mounts-test.mount",
|
"mnt-data-supervisor-mounts-test.mount",
|
||||||
"fail",
|
"fail",
|
||||||
[
|
[
|
||||||
|
["Options", Variant("s", "guest")],
|
||||||
["Type", Variant("s", "cifs")],
|
["Type", Variant("s", "cifs")],
|
||||||
["Description", Variant("s", "Supervisor cifs mount: test")],
|
["Description", Variant("s", "Supervisor cifs mount: test")],
|
||||||
["What", Variant("s", "//test.local/share")],
|
["What", Variant("s", "//test.local/share")],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user