mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2025-10-18 18:02:06 -06:00
Tweak 'Ignore Availability Reports' setting
This commit is contained in:
parent
45182a6416
commit
dac16b0fd4
@ -270,10 +270,13 @@ import { pollVinculum } from './fimp/vinculum';
|
|||||||
|
|
||||||
case 'evt.network.all_nodes_report': {
|
case 'evt.network.all_nodes_report': {
|
||||||
const devicesAvailability = msg.val;
|
const devicesAvailability = msg.val;
|
||||||
if (!devicesAvailability || ignoreAvailabilityReports) {
|
if (!devicesAvailability) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (const deviceAvailability of devicesAvailability) {
|
for (const deviceAvailability of devicesAvailability) {
|
||||||
|
if (ignoreAvailabilityReports) {
|
||||||
|
deviceAvailability.status = 'UP';
|
||||||
|
}
|
||||||
haUpdateAvailability({ hubId, deviceAvailability });
|
haUpdateAvailability({ hubId, deviceAvailability });
|
||||||
await delay(50);
|
await delay(50);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user