Dore connection error ignor
This commit is contained in:
parent
1e973d2d8f
commit
74e427fee2
@ -122,7 +122,11 @@ class Home extends Template
|
|||||||
$minutes = $interval->format('%i');
|
$minutes = $interval->format('%i');
|
||||||
$lastSeen = ($hours * 60 + $minutes);
|
$lastSeen = ($hours * 60 + $minutes);
|
||||||
|
|
||||||
if ($lastSeen < $deviceData['sleep_time'] || $subDeviceData['type'] == "on/off") {
|
if (
|
||||||
|
$lastSeen < $deviceData['sleep_time'] ||
|
||||||
|
$subDeviceData['type'] == "on/off" ||
|
||||||
|
$subDeviceData['type'] == "door"
|
||||||
|
) {
|
||||||
$connectionError = false;
|
$connectionError = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user