Skip to content

Commit 8f93629

Browse files
committed
Fixed broken test for test_sengled_color_temp_bulb.lua
1 parent 6d9e694 commit 8f93629

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

drivers/SmartThings/zigbee-switch/src/test/test_sengled_color_temp_bulb.lua

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ test.register_coroutine_test(
7373
test.socket.zigbee:__expect_send({ mock_device.id, OnOff.attributes.OnOff:read(mock_device) })
7474
test.socket.zigbee:__expect_send({ mock_device.id, Level.attributes.CurrentLevel:read(mock_device) })
7575
test.socket.zigbee:__expect_send({ mock_device.id, ColorControl.attributes.ColorTemperatureMireds:read(mock_device) })
76+
test.socket.zigbee:__expect_send({ mock_device.id, ColorControl.attributes.ColorTempPhysicalMaxMireds:read(mock_device) })
77+
test.socket.zigbee:__expect_send({ mock_device.id, ColorControl.attributes.ColorTempPhysicalMinMireds:read(mock_device) })
78+
test.socket.zigbee:__expect_send({ mock_device.id, ColorControl.attributes.ColorTempPhysicalMaxMireds:configure_reporting(mock_device, 0x0001, 0xA8C0, 0x01) })
79+
test.socket.zigbee:__expect_send({ mock_device.id, ColorControl.attributes.ColorTempPhysicalMinMireds:configure_reporting(mock_device, 0x0001, 0xA8C0, 0x01) })
7680
mock_device:expect_metadata_update({ provisioning_state = "PROVISIONED" })
7781
end
7882
)
@@ -108,6 +112,22 @@ test.register_message_test(
108112
mock_device.id,
109113
ColorControl.attributes.ColorTemperatureMireds:read(mock_device)
110114
}
115+
},
116+
{
117+
channel = "zigbee",
118+
direction = "send",
119+
message = {
120+
mock_device.id,
121+
ColorControl.attributes.ColorTempPhysicalMinMireds:read(mock_device)
122+
}
123+
},
124+
{
125+
channel = "zigbee",
126+
direction = "send",
127+
message = {
128+
mock_device.id,
129+
ColorControl.attributes.ColorTempPhysicalMaxMireds:read(mock_device)
130+
}
111131
}
112132
},
113133
{

0 commit comments

Comments
 (0)