diff --git a/homeassistant/components/proxmoxve/button.py b/homeassistant/components/proxmoxve/button.py index 648d489c625..69e7e1732b2 100644 --- a/homeassistant/components/proxmoxve/button.py +++ b/homeassistant/components/proxmoxve/button.py @@ -104,7 +104,7 @@ VM_BUTTONS: tuple[ProxmoxVMButtonEntityDescription, ...] = ( ProxmoxVMButtonEntityDescription( key="restart", press_action=lambda coordinator, node, vmid: ( - coordinator.proxmox.nodes(node).qemu(vmid).status.restart.post() + coordinator.proxmox.nodes(node).qemu(vmid).status.reboot.post() ), entity_category=EntityCategory.CONFIG, device_class=ButtonDeviceClass.RESTART, @@ -147,7 +147,7 @@ CONTAINER_BUTTONS: tuple[ProxmoxContainerButtonEntityDescription, ...] = ( ProxmoxContainerButtonEntityDescription( key="restart", press_action=lambda coordinator, node, vmid: ( - coordinator.proxmox.nodes(node).lxc(vmid).status.restart.post() + coordinator.proxmox.nodes(node).lxc(vmid).status.reboot.post() ), entity_category=EntityCategory.CONFIG, device_class=ButtonDeviceClass.RESTART, diff --git a/tests/components/proxmoxve/test_button.py b/tests/components/proxmoxve/test_button.py index 35f3bffbf56..4e34ba841ef 100644 --- a/tests/components/proxmoxve/test_button.py +++ b/tests/components/proxmoxve/test_button.py @@ -112,7 +112,7 @@ async def test_node_startall_stopall_buttons( [ ("button.vm_web_start", 100, "start"), ("button.vm_web_stop", 100, "stop"), - ("button.vm_web_restart", 100, "restart"), + ("button.vm_web_restart", 100, "reboot"), ("button.vm_web_hibernate", 100, "hibernate"), ("button.vm_web_reset", 100, "reset"), ], @@ -147,7 +147,7 @@ async def test_vm_buttons( [ ("button.ct_nginx_start", 200, "start"), ("button.ct_nginx_stop", 200, "stop"), - ("button.ct_nginx_restart", 200, "restart"), + ("button.ct_nginx_restart", 200, "reboot"), ], ) async def test_container_buttons( @@ -278,7 +278,7 @@ async def test_vm_buttons_exceptions( ( "button.ct_nginx_restart", 200, - "restart", + "reboot", ConnectTimeout("timeout"), ), (