Skip to content

Commit 9052ba8

Browse files
authored
Merge pull request #182 from Grizzelbee/Development
V2.3.2 (2022-03-04) (Fairytale of doom)
2 parents 06b2c40 + 89dff67 commit 9052ba8

File tree

6 files changed

+354
-272
lines changed

6 files changed

+354
-272
lines changed

.github/workflows/codeQL.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main ]
20+
schedule:
21+
- cron: '30 14 * * 4'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'javascript' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37+
# Learn more:
38+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v2
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v1
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v1

io-package.json

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
{
22
"common": {
33
"name": "dysonairpurifier",
4-
"version": "2.3.1",
4+
"version": "2.3.2",
55
"news": {
6+
"2.3.2": {
7+
"en": "Fixed sentry-error DYSONAIRPURIFIER-D\nupdated dependencies",
8+
"de": "Sentry-Fehler DYSONAIRPURIFIER-D behoben\nAbhängigkeiten aktualisiert",
9+
"ru": "Исправлена ​​ошибка Sentry-DYSONAIRPURIFIER-D\nобновлены зависимости",
10+
"pt": "Corrigido o erro de sentinela DYSONAIRPURIFIER-D \n dependências atualizadas",
11+
"nl": "Vaste schildwachtfout DYSONAIRPURIFIER-D\nbijgewerkte afhankelijkheden",
12+
"fr": "Correction de l'erreur sentinelle DYSONAIRPURIFIER-D \n dépendances mises à jour",
13+
"it": "Risolto errore di sentinella DYSONAIRPURIFIER-D\ndipendenze aggiornate",
14+
"es": "Se corrigió el error de centinela DYSONAIRPURIFIER-D \n Dependencias actualizadas",
15+
"pl": "Naprawiono błąd wartownika DYSONAIRPURIFIER-D \n zaktualizowane zależności",
16+
"zh-cn": "修复了哨兵错误 DYSONAIRPURIFIER-D\n 更新了依赖项"
17+
},
618
"2.3.1": {
7-
"en": "Updated documentation\nupdated dependecies",
19+
"en": "Updated documentation\nupdated dependencies",
820
"de": "Aktualisierte Dokumentation\naktualisierte Abhängigkeiten",
921
"ru": "Обновленная документация\nобновленные зависимости",
1022
"pt": "Documentação atualizada\ndependências atualizadas",

main.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,17 @@ class dysonAirPurifier extends utils.Adapter {
6565
dysonUtils.getDyson2faMail(this, msg.message.email, msg.message.password, msg.message.country, msg.message.locale)
6666
.then((response) => this.sendTo(msg.from, msg.command, response, msg.callback))
6767
.catch((e) => {
68-
this.log.warn(`Couldn't handle getDyson2faMail message: ${e}`);
69-
this.sendTo(msg.from, msg.command, { error: e || 'No data' }, msg.callback);
68+
adapter.log.warn(`Couldn't handle getDyson2faMail message: ${e}`);
69+
adapter.sendTo(msg.from, msg.command, { error: e || 'No data' }, msg.callback);
7070
});
7171
}
7272
if (msg.command === 'getDysonToken') {
7373
this.log.debug('OnMessage: getting Dyson-Token');
7474
dysonUtils.getDysonToken(this, msg.message.email, msg.message.password,msg.message.country, msg.message.challengeId, msg.message.PIN)
7575
.then((response) => this.sendTo(msg.from, msg.command, response, msg.callback))
7676
.catch((e) => {
77-
this.log.warn(`Couldn't handle getDysonToken message: ${e}`);
78-
this.sendTo(msg.from, msg.command, { error: e || 'No data' }, msg.callback);
77+
adapter.log.warn(`Couldn't handle getDysonToken message: ${e}`);
78+
adapter.sendTo(msg.from, msg.command, { error: e || 'No data' }, msg.callback);
7979
});
8080
}
8181
}

0 commit comments

Comments
 (0)