Id in name of Dewice Deleted

This commit is contained in:
JonatanRek 2019-09-20 19:35:35 +02:00
parent 52c6d5e930
commit 5bb42132e2

View File

@ -43,7 +43,7 @@ class Automation extends Template
$allSubDevicesData = SubDeviceManager::getAllSubDevices($deviceValue['device_id']); $allSubDevicesData = SubDeviceManager::getAllSubDevices($deviceValue['device_id']);
foreach ($allSubDevicesData as $subDeviceKey => $subDeviceValue) { foreach ($allSubDevicesData as $subDeviceKey => $subDeviceValue) {
$approvedSubDevices[$subDeviceValue['subdevice_id']] = [ $approvedSubDevices[$subDeviceValue['subdevice_id']] = [
'name' => $allDevicesData[$deviceKey]['name'] . $allDevicesData[$deviceKey]['device_id'], 'name' => $allDevicesData[$deviceKey]['name'],
'type' => $subDeviceValue['type'], 'type' => $subDeviceValue['type'],
'masterDevice' => $subDeviceValue['device_id'], 'masterDevice' => $subDeviceValue['device_id'],
]; ];