mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-12 02:04:34 +00:00
Few Fixes After infrastructure migration
This commit is contained in:
1 parent
32521d0ed3
commit
30da6e162b
5 files changed
+23
-13
No files matched your search
@@ -30,6 +30,12 @@ class Device extends Template
|
||||
} else {
|
||||
$devices[$key]['firmware_hash'] = "false";
|
||||
}
|
||||
|
||||
$wifi = SubDeviceManager::getSubDeviceByMaster($device['device_id'], 'wifi');
|
||||
if ($wifi) {
|
||||
$signalStrenght = RecordManager::getLastRecordNotNull($wifi['subdevice_id']);
|
||||
$devices[$key]['signal'] = (!$signalStrenght ? 0 : $signalStrenght['value']);
|
||||
}
|
||||
}
|
||||
|
||||
$rooms = $roomManager->getAllRooms();
|
||||
|
||||
Reference in new issue
Block a user