front/src/actions/device.js
Function createActions
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createActions(store) {
const actions = {
async getDevicesByRoom(state) {
store.setState({
DeviceGetStatus: DeviceGetByRoomStatus.Getting
Function updateValue
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
async updateValue(state, device, deviceFeature, roomIndex, deviceIndex, deviceFeatureIndex, value) {
Function updateLocalValue
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
updateLocalValue(state, roomIndex, deviceIndex, deviceFeatureIndex, value) {