Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed May 16, 2023
1 parent 73a5df5 commit dfb8d1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class AwtrixLight extends utils.Adapter {
if (idNoNamespace.endsWith('.visible')) {
const obj = await this.getObjectAsync(idNoNamespace);
if (obj && obj.native?.name) {
this.buildRequest('apps',
this.buildRequest(
'apps',
async (content) => {
if (content === 'OK') {
await this.setStateChangedAsync(idNoNamespace, { val: state.val, ack: true });
Expand Down Expand Up @@ -159,7 +160,7 @@ class AwtrixLight extends utils.Adapter {
(content) => {
const appPath = 'apps';
const nativeApps = ['time', 'eyes', 'date', 'temp', 'hum'];
const currentApps = content.map(a => a.name);
const currentApps = content.map((a) => a.name);

this.getChannelsOf(appPath, async (err, states) => {
const appsAll = [];
Expand Down

0 comments on commit dfb8d1e

Please sign in to comment.