mirror of
https://github.com/skydiver/ewelink-api.git
synced 2025-12-24 22:39:26 +01:00
Release v1.4.1 (#13)
* specific error when requested channel is bigger than total * fix for multi-channel devices * updated test expectations * fixes with uiid api changes * fix wrong error message * added new test cases * return expected error on wrong channel number * added more devices * version bump
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"email": "<your ewelink email>",
|
||||
"password": "<your ewelink password>",
|
||||
"deviceId": "<your device id>",
|
||||
"singleChannelDeviceId": "<your device id>",
|
||||
"deviceIdWithPower": "<your device id>",
|
||||
"deviceIdWithoutPower": "<your device id>"
|
||||
"deviceIdWithoutPower": "<your device id>",
|
||||
"fourChannelsDevice": "<your device id>"
|
||||
}
|
||||
@@ -10,7 +10,11 @@ const allDevicesExpectations = {
|
||||
apikey: expect.any(String),
|
||||
params: expect.any(Object),
|
||||
showBrand: expect.any(Boolean),
|
||||
uiid: expect.any(Number),
|
||||
extra: {
|
||||
extra: {
|
||||
uiid: expect.any(Number),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const specificDeviceExpectations = {
|
||||
@@ -18,7 +22,11 @@ const specificDeviceExpectations = {
|
||||
deviceid: expect.any(String),
|
||||
apikey: expect.any(String),
|
||||
online: expect.any(Boolean),
|
||||
uiid: expect.any(Number),
|
||||
extra: {
|
||||
extra: {
|
||||
uiid: expect.any(Number),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const rawPowerUsageExpectations = {
|
||||
|
||||
Reference in New Issue
Block a user