Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Dec 18, 2023
1 parent fa3fd28 commit 6af681a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
14 changes: 7 additions & 7 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ function startAdapter(options) {
}
defaultHistory= obj.common.defaultHistory;

alexaSH2 && alexaSH2.setLanguage(lang);
alexaSH3 && alexaSH3.setLanguage(lang);
yandexAlisa && yandexAlisa.setLanguage(lang);
alexaCustom && alexaCustom.setLanguage(lang);
googleHome && googleHome.setLanguage(lang);
remote.setLanguage(lang);
alexaSH2 && alexaSH2.setLanguage(lang);
alexaSH3 && alexaSH3.setLanguage(lang);
yandexAlisa && yandexAlisa.setLanguage(lang);
alexaCustom && alexaCustom.setLanguage(lang);
googleHome && googleHome.setLanguage(lang);
remote && remote.setLanguage(lang);
}
// if it is an instance
if (id.startsWith('system.adapter.')) {
Expand Down Expand Up @@ -1275,7 +1275,7 @@ async function main() {

alexaCustom && alexaCustom.setLanguage(lang, translate);

remote.setLanguage(lang);
remote && remote.setLanguage(lang);
// check password
if (adapter.config.pass.length < 8 || !adapter.config.pass.match(/[a-z]/) || !adapter.config.pass.match(/[A-Z]/) || !adapter.config.pass.match(/\d/)) {
return adapter.log.error('The password must be at least 8 characters long and have numbers, upper and lower case letters. Please change the password in the profile https://iobroker.pro/accountProfile.');
Expand Down
20 changes: 11 additions & 9 deletions src/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ import React from 'react';
import { withStyles } from '@mui/styles';
import { ThemeProvider, StyledEngineProvider } from '@mui/material/styles';

import AppBar from '@mui/material/AppBar';
import Tabs from '@mui/material/Tabs';
import Tab from '@mui/material/Tab';
import Dialog from '@mui/material/Dialog';
import DialogActions from '@mui/material/DialogActions';
import DialogContent from '@mui/material/DialogContent';
import DialogContentText from '@mui/material/DialogContentText';
import DialogTitle from '@mui/material/DialogTitle';
import Button from '@mui/material/Button';
import {
AppBar,
Tabs,
Tab,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
Button,
} from '@mui/material';

import GenericApp from '@iobroker/adapter-react-v5/GenericApp';
import { I18n, Loader, AdminConnection } from '@iobroker/adapter-react-v5';
Expand Down

0 comments on commit 6af681a

Please sign in to comment.