Skip to content

Commit

Permalink
Merge pull request #8 from T0biii/add-mac
Browse files Browse the repository at this point in the history
add mac to NodeInfo
  • Loading branch information
awlx committed Jan 2, 2022
2 parents 5a515f6 + dbbf843 commit 592cad4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions respondd_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ class OwnerInfo:
class SoftwareInfo:
firmware: FirmwareInfo

@dataclasses.dataclass
class NetworkInfo:
mac: str

@dataclass_json
@dataclasses.dataclass
class NodeInfo:
Expand Down Expand Up @@ -110,6 +114,7 @@ def getNodeInfos(self):
location=LocationInfo(latitude=ap.latitude, longitude=ap.longitude),
hardware=HardwareInfo(model=ap.model),
owner=OwnerInfo(contact=ap.contact),
network=NetworkInfo(mac=ap.mac),
)
)
return nodes
Expand Down

0 comments on commit 592cad4

Please sign in to comment.