Skip to content

Commit

Permalink
Added the dataclass to be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
vatsalghelani-csa committed Apr 3, 2024
1 parent 62557b2 commit 2531169
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions scripts/tests/py/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,25 @@
from pathlib import Path
import re
import yaml
from typing import Optional


@dataclass
class Metadata:
py_script_path: str = None
run: str = None
app: str = None
factoryreset: bool = False
comissioning_method: str = None
discriminator: int = None
kvs: str = None
storage_path: str = None
on_network_commission: str = None
passcode: int = None
endpoint: str = None
manual_code: str = None
PICS: str = None
tests: str = None
py_script_path: Optional[str] = None
run: Optional[str] = None
app: Optional[str] = None
factoryreset: Optional[bool] = False
comissioning_method: Optional[str] = None
discriminator: Optional[int] = None
kvs: Optional[str] = None
storage_path: Optional[str] = None
on_network_commission: Optional[str] = None
passcode: Optional[int] = None
endpoint: Optional[str] = None
manual_code: Optional[str] = None
PICS: Optional[str] = None
tests: Optional[str] = None


class Metadata_Reader:
Expand Down

0 comments on commit 2531169

Please sign in to comment.