mirror of
https://github.com/skydiver/ewelink-api.git
synced 2026-01-04 03:54:59 +01:00
toggleDevicePowerState: renamed to toggleDevicePowerState
This commit is contained in:
@@ -16,7 +16,7 @@ const { makeRequest } = require('./makeRequest');
|
||||
const { openWebSocket } = require('./openWebSocket');
|
||||
const { saveDevicesCache } = require('./saveDevicesCache');
|
||||
const { setDevicePowerState } = require('./setDevicePowerState');
|
||||
const { toggleDevice } = require('./toggleDevice');
|
||||
const { toggleDevicePowerState } = require('./toggleDevicePowerState');
|
||||
|
||||
const mixins = {
|
||||
checkDevicesUpdates,
|
||||
@@ -37,7 +37,7 @@ const mixins = {
|
||||
openWebSocket,
|
||||
saveDevicesCache,
|
||||
setDevicePowerState,
|
||||
toggleDevice,
|
||||
toggleDevicePowerState,
|
||||
};
|
||||
|
||||
module.exports = mixins;
|
||||
|
||||
@@ -7,7 +7,7 @@ module.exports = {
|
||||
*
|
||||
* @returns {Promise<{state: *, status: string}|{msg: string, error: *}>}
|
||||
*/
|
||||
async toggleDevice(deviceId, channel = 1) {
|
||||
async toggleDevicePowerState(deviceId, channel = 1) {
|
||||
return this.setDevicePowerState(deviceId, 'toggle', channel);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user