fix ids
This commit is contained in:
@@ -44,9 +44,9 @@ export async function runPublishLoop(
|
|||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
device,
|
device,
|
||||||
command_topic: `${state_topic}/trigger-reboot`,
|
command_topic: `${state_topic}/trigger-reboot`,
|
||||||
default_entity_id: `button.${config.device.key}_${entityIds.actions.triggerReboot}`,
|
default_entity_id: `button.${config.device.key}_${entityIds.actions.triggerReboot}_${bootEntry.number}`,
|
||||||
name: `Reboot into ${bootEntry.label}`,
|
name: `Reboot into ${bootEntry.label} - ${bootEntry.number}`,
|
||||||
object_id: `efibootmgr_${config.device.key}_${entityIds.actions.triggerReboot}`,
|
object_id: `efibootmgr_${config.device.key}_${entityIds.actions.triggerReboot}_${bootEntry.number}`,
|
||||||
payload_press: bootEntry.number,
|
payload_press: bootEntry.number,
|
||||||
unique_id: `${config.device.key}_efibootmgr_${entityIds.actions.triggerReboot}`,
|
unique_id: `${config.device.key}_efibootmgr_${entityIds.actions.triggerReboot}`,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user