mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2025-11-18 09:09:03 +00:00
Add more delays when initializing demo mode
This commit is contained in:
@@ -85,6 +85,7 @@ import { pollVinculum } from './fimp/vinculum';
|
||||
if (demoMode) {
|
||||
log.debug('Resetting all devices for demo mode');
|
||||
ha?.publish(haDevice.topic, '', { retain: true, qos: 2 });
|
||||
await delay(50);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -122,6 +123,11 @@ import { pollVinculum } from './fimp/vinculum';
|
||||
}
|
||||
}
|
||||
|
||||
if (demoMode) {
|
||||
// Wait for the devices to be fully removed from Home Assistant
|
||||
await delay(1000);
|
||||
}
|
||||
|
||||
const vinculumDevicesToHa = async (devices: FimpResponse) => {
|
||||
const commandHandlers: CommandHandlers = {};
|
||||
for (const device of devices.val.param.device) {
|
||||
|
||||
Reference in New Issue
Block a user