fix action
This commit is contained in:
@@ -40,7 +40,7 @@ export async function runPublishLoop(
|
||||
|
||||
for (const bootEntry of bootEntries) {
|
||||
await mqttClient.publishAsync(
|
||||
`homeassistant/button/${config.device.key}/button-trigger-reboot/config`,
|
||||
`homeassistant/button/${config.device.key}/button-trigger-reboot-${bootEntry.number}/config`,
|
||||
JSON.stringify({
|
||||
device,
|
||||
command_topic: `${state_topic}/trigger-reboot`,
|
||||
@@ -48,7 +48,7 @@ export async function runPublishLoop(
|
||||
name: `Reboot into ${bootEntry.label} - ${bootEntry.number}`,
|
||||
object_id: `efibootmgr_${config.device.key}_${entityIds.actions.triggerReboot}_${bootEntry.number}`,
|
||||
payload_press: bootEntry.number,
|
||||
unique_id: `${config.device.key}_efibootmgr_${entityIds.actions.triggerReboot}`,
|
||||
unique_id: `${config.device.key}_efibootmgr_${entityIds.actions.triggerReboot}_${bootEntry.number}`,
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user