async deleteDevice(state, device, index) {
      await state.httpClient.delete(`/api/v1/device/${device.selector}`);
      const newState = update(state, {
        tpLinkDevices: {
          $splice: [[index, 1]]