Fix most eslint warnings
This commit is contained in:
parent
196aa44895
commit
8d2d39cb0e
6 changed files with 16 additions and 12 deletions
|
|
@ -25,7 +25,7 @@ export type AppState = {
|
|||
selectedControl: ?Control,
|
||||
drawerOpened: boolean,
|
||||
mqttState: State,
|
||||
mqttSend: (topic: string, value: any) => void,
|
||||
mqttSend: (topic: string, value: Actual) => void,
|
||||
mqttConnected: boolean,
|
||||
};
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ class App extends React.Component<AppProps & Classes, AppState> {
|
|||
this.setState({drawerOpened: false});
|
||||
}
|
||||
|
||||
changeState(topic: string, value: any) {
|
||||
changeState(topic: string, value: Actual) {
|
||||
const rawTopic = this.props.config.topics[topic].command;
|
||||
if (rawTopic == null) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue