Skip to content

Commit

Permalink
missing part
Browse files Browse the repository at this point in the history
  • Loading branch information
DamKast committed Jun 26, 2024
1 parent 85daab9 commit ad069c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,9 +907,9 @@ def connection_lost(self, exc):
@reply_to(c.NcpConfig.ReadNVRAM.Req(partial=True))
def read_nvram(self, request):
"""Handle NVRAM read."""
status_code = 1
status_code = t.StatusCodeGeneric.ERROR
if request.DatasetId == t.DatasetId.ZB_NVRAM_COMMON_DATA:
status_code = 0
status_code = t.StatusCodeGeneric.OK
dataset = t.DSCommonData(
byte_count=100,
bitfield=1,
Expand Down Expand Up @@ -939,7 +939,7 @@ def read_nvram(self, request):
nvram_version = 3
dataset_version = 1
elif request.DatasetId == t.DatasetId.ZB_IB_COUNTERS:
status_code = 0
status_code = t.StatusCodeGeneric.OK
dataset = t.DSIbCounters(
byte_count=8,
nib_counter=100, # Example counter value
Expand All @@ -948,7 +948,7 @@ def read_nvram(self, request):
nvram_version = 1
dataset_version = 1
elif request.DatasetId == t.DatasetId.ZB_NVRAM_ADDR_MAP:
status_code = 0
status_code = t.StatusCodeGeneric.OK
dataset = t.DSNwkAddrMap(
header=t.NwkAddrMapHeader(
byte_count=100,
Expand Down Expand Up @@ -977,7 +977,7 @@ def read_nvram(self, request):
nvram_version = 2
dataset_version = 1
elif request.DatasetId == t.DatasetId.ZB_NVRAM_APS_SECURE_DATA:
status_code = 0
status_code = t.StatusCodeGeneric.OK
dataset = t.DSApsSecureKeys(
header=10,
items=[
Expand Down

0 comments on commit ad069c4

Please sign in to comment.