mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2025-09-13 15:47:08 +00:00
Add more delays when initializing demo mode
This commit is contained in:
parent
d43414c90d
commit
d131297f2a
@ -8,6 +8,7 @@
|
|||||||
- Fixed using the unit reported by the numerical sensor.
|
- Fixed using the unit reported by the numerical sensor.
|
||||||
- Added restarting the add-on when disconnected from the hub or Home Assistant
|
- Added restarting the add-on when disconnected from the hub or Home Assistant
|
||||||
- Updated demo mode data.
|
- Updated demo mode data.
|
||||||
|
- Added more delays when initializing the demo mode.
|
||||||
|
|
||||||
## 0.1.7 (26.07.2025)
|
## 0.1.7 (26.07.2025)
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ import { pollVinculum } from './fimp/vinculum';
|
|||||||
if (demoMode) {
|
if (demoMode) {
|
||||||
log.debug('Resetting all devices for demo mode');
|
log.debug('Resetting all devices for demo mode');
|
||||||
ha?.publish(haDevice.topic, '', { retain: true, qos: 2 });
|
ha?.publish(haDevice.topic, '', { retain: true, qos: 2 });
|
||||||
|
await delay(50);
|
||||||
continue;
|
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 vinculumDevicesToHa = async (devices: FimpResponse) => {
|
||||||
const commandHandlers: CommandHandlers = {};
|
const commandHandlers: CommandHandlers = {};
|
||||||
for (const device of devices.val.param.device) {
|
for (const device of devices.val.param.device) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user