Skip to content

Commit

Permalink
Fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Oct 24, 2023
1 parent 710c2af commit 7f2d90e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
16 changes: 8 additions & 8 deletions src-admin/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import GenericApp from '@iobroker/adapter-react-v5/GenericApp';
import { I18n, Loader, AdminConnection } from '@iobroker/adapter-react-v5';

import ConfigHandler from './components/ConfigHandler';
import Options from './Tabs/Options';
import Controller from './Tabs/Controller';
import Bridges from './Tabs/Bridges';
import Devices from './Tabs/Devices';
import OptionsTab from './Tabs/Options';
import ControllerTab from './Tabs/Controller';
import BridgesTab from './Tabs/Bridges';
import DevicesTab from './Tabs/Devices';

const productIDs = [];
for (let i = 0x8000; i <= 0x801F; i++) {
Expand Down Expand Up @@ -193,7 +193,7 @@ class App extends GenericApp {
}

renderController() {
return <Controller
return <ControllerTab
onChange={(id, value) => {
this.updateNativeValue(id, value);
}}
Expand All @@ -207,7 +207,7 @@ class App extends GenericApp {
}

renderOptions() {
return <Options
return <OptionsTab
alive={this.state.alive}
onChange={(id, value) => {
this.updateNativeValue(id, value);
Expand All @@ -223,7 +223,7 @@ class App extends GenericApp {
}

renderBridges() {
return <Bridges
return <BridgesTab
alive={this.state.alive}
socket={this.socket}
instance={this.instance}
Expand All @@ -246,7 +246,7 @@ class App extends GenericApp {
}

renderDevices() {
return <Devices
return <DevicesTab
alive={this.state.alive}
updateNodeStates={nodeStates => {
const _nodeStates = JSON.parse(JSON.stringify(this.state.nodeStates));
Expand Down
2 changes: 1 addition & 1 deletion src-admin/src/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,4 @@ export const detectDevices = async (socket, list) => {
return result;
};

export const getText = (text => typeof text === 'object' ? (text?.[I18n.getLanguage()] || '') : (text || ''));
export const getText = text => (typeof text === 'object' ? (text?.[I18n.getLanguage()] || '') : (text || ''));
10 changes: 6 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import axios from 'axios';
import jwt from 'jsonwebtoken';
import fs from 'fs';

import * as utils from '@iobroker/adapter-core';
import ChannelDetector, { DetectorState, PatternControl, Types } from '@iobroker/type-detector';
import { MatterServer } from '@project-chip/matter-node.js';
import { StorageManager } from '@project-chip/matter-node.js/storage';
import { Level, Logger } from '@project-chip/matter-node.js/log';

import { StorageIoBroker } from './matter/StorageIoBroker';
import { DeviceFabric, SubscribeManager } from './lib';
Expand All @@ -14,10 +19,7 @@ import {
DeviceDescription,
MatterAdapterConfig
} from './ioBrokerStorageTypes';
import { Level, Logger } from '@project-chip/matter-node.js/log';
import axios from 'axios';
import jwt from 'jsonwebtoken';
import fs from 'fs';


const IOBROKER_USER_API = 'https://iobroker.pro:3001';

Expand Down

0 comments on commit 7f2d90e

Please sign in to comment.