Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow wifi ssid with spaces #151

Merged
merged 10 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .version_information
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.11-beta3.1+fall2024
v2.11-beta3.1+fall2024
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async def test_generate_command_arguments_ble_wifi() -> None:
assert [
"--trace-to json:log",
"--commissioning-method ble-wifi",
"--wifi-ssid testharness",
'--wifi-ssid "testharness"',
"--wifi-passphrase wifi-password",
"--discriminator 147",
"--passcode 357",
Expand Down
6 changes: 5 additions & 1 deletion test_collections/matter/test_environment_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#
from enum import Enum
from typing import Optional, Union
from typing import Any, Optional, Union

from pydantic import BaseModel

Expand All @@ -36,6 +36,10 @@ class WiFiConfig(BaseModel):
ssid: str
password: str

def __init__(self, **kwargs: Any) -> None:
super().__init__(**kwargs)
self.ssid = f'"{self.ssid}"'


class ThreadExternalConfig(BaseModel):
operational_dataset_hex: str
Expand Down
Loading