mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2025-10-18 09:52: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': {
|
||||
const devicesAvailability = msg.val;
|
||||
if (!devicesAvailability || ignoreAvailabilityReports) {
|
||||
if (!devicesAvailability) {
|
||||
return;
|
||||
}
|
||||
for (const deviceAvailability of devicesAvailability) {
|
||||
if (ignoreAvailabilityReports) {
|
||||
deviceAvailability.status = 'UP';
|
||||
}
|
||||
haUpdateAvailability({ hubId, deviceAvailability });
|
||||
await delay(50);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user