mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Some Tweeks
This commit is contained in:
1 parent
c410df1bd6
commit
5d32c2bfa4
3 files changed
+41
-34
No files matched your search
@@ -13,6 +13,7 @@ class OpenWeatherMap extends VirtualDeviceManager
|
||||
$deviceId = DeviceManager::getDeviceByToken($this->virtual_device_name)['device_id'];
|
||||
if (!$subDevice = SubDeviceManager::getSubDeviceByMaster($deviceId, $this->subdevice_type)) {
|
||||
SubDeviceManager::create($deviceId, $this->subdevice_type, '');
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
if (!$this->fetchEnabled($deviceId,$subDevice['subdevice_id'])) die();
|
||||
|
||||
Reference in new issue
Block a user