Merge branch 'bluez' of https://github.com/icanos/hassio-plejd into bluez
This commit is contained in:
commit
1deb59ce6b
6 changed files with 58 additions and 9 deletions
|
|
@ -15,7 +15,6 @@ async function main() {
|
|||
const client = new mqtt.MqttClient(config.mqttBroker, config.mqttUsername, config.mqttPassword);
|
||||
|
||||
plejdApi.once('loggedIn', () => {
|
||||
plejdApi.getCryptoKey();
|
||||
plejdApi.on('ready', (cryptoKey) => {
|
||||
const devices = plejdApi.getDevices();
|
||||
|
||||
|
|
@ -72,6 +71,8 @@ async function main() {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
plejdApi.getCryptoKey();
|
||||
});
|
||||
|
||||
plejdApi.login();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue