Skip to content

Commit

Permalink
Update Zigbee tests for next Lua Libs release (#1156)
Browse files Browse the repository at this point in the history
The next Lua Libs release has a few changes on timing and tolerance
for some clusters to ease battery drain, so these test updates will
need to be merged in at that time.

Co-authored-by: cjswedes <[email protected]>
  • Loading branch information
dljsjr and cjswedes authored Mar 7, 2024
1 parent 7221665 commit 4b6a5a2
Show file tree
Hide file tree
Showing 21 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ test.register_coroutine_test(
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(
mock_device, 30, 300, 16
mock_device, 30, 600, 100
)
})
test.socket.zigbee:__expect_send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ test.register_coroutine_test(
})
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 16)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
})
test.socket.zigbee:__expect_send({
mock_device.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ test.register_coroutine_test(
})
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 16)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
})
test.socket.zigbee:__expect_send({
mock_device.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ test.register_coroutine_test(
})
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 16)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
})
test.socket.zigbee:__expect_send({
mock_device.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ test.register_coroutine_test(
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device,
30,
300,
0x10)
600,
100)
}
)
test.socket.zigbee:__expect_send(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ test.register_coroutine_test(
})
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 16)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
})
test.socket.zigbee:__expect_send({
mock_device.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ test.register_coroutine_test(
})
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 16)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
})
test.socket.zigbee:__expect_send({ mock_device.id, RelativeHumidity.attributes.MeasuredValue:read(mock_device):to_endpoint(0x02) })
test.socket.zigbee:__expect_send({ mock_device.id, TemperatureMeasurement.attributes.MeasuredValue:read(mock_device) })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ test.register_coroutine_test(
})
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 0x10)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
})
test.socket.zigbee:__expect_send({
mock_device.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ test.register_coroutine_test(
})
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 0x10)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
})
test.socket.zigbee:__expect_send({
mock_device.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ test.register_coroutine_test(
})
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 0x10)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
})
test.socket.zigbee:__expect_send({
mock_device.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test.register_coroutine_test(
})
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 16)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
})
test.socket.zigbee:__expect_send({
mock_device.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ test.register_coroutine_test(
})
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 16)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
})
test.socket.zigbee:__expect_send({
mock_device.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ test.register_coroutine_test(
})
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 16)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
})
test.socket.zigbee:__expect_send({
mock_device.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ test.register_coroutine_test(
})
test.socket.zigbee:__expect_send({
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 0x10)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
})
test.socket.zigbee:__expect_send({
mock_device.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ test.register_coroutine_test(
test.socket.zigbee:__expect_send(
{
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 16)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ test.register_coroutine_test(
test.socket.zigbee:__expect_send(
{
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 16)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
}
)
test.socket.zigbee:__expect_send(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ test.register_coroutine_test(
test.socket.zigbee:__expect_send(
{
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 16)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ test.register_coroutine_test(
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(
mock_device,
30,
300,
0x10
600,
100
)
})
test.socket.zigbee:__expect_send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ test.register_coroutine_test(
test.socket.zigbee:__expect_send(
{
mock_device.id,
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 300, 16)
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(mock_device, 30, 600, 100)
}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ test.register_coroutine_test(
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(
mock_device,
30,
300,
0x10
600,
100
)
})
test.socket.zigbee:__expect_send({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ test.register_coroutine_test(
TemperatureMeasurement.attributes.MeasuredValue:configure_reporting(
mock_device,
30,
300,
0x10
600,
100
)
})
test.socket.zigbee:__expect_send({
Expand Down

0 comments on commit 4b6a5a2

Please sign in to comment.