From 032c998c4bac573f21074c3c4da8304a538444b3 Mon Sep 17 00:00:00 2001 From: Patrick Cartwright Date: Tue, 8 Oct 2024 17:37:35 -0500 Subject: [PATCH] Fix error on adding buttons --- creality_control/button.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/creality_control/button.py b/creality_control/button.py index f318eb3..d903bc7 100644 --- a/creality_control/button.py +++ b/creality_control/button.py @@ -17,9 +17,9 @@ async def async_setup_entry(hass, entry, async_add_entities): # Check the printer type to populate the appropriate buttons if entry.data.get("printer_type") == "wifi_box": buttons.extend([ - CrealityControlButton(coordinator, f"{coordinator.config['model']} Pause Print", "PRINT_PAUSE"), - CrealityControlButton(coordinator, f"{coordinator.config['model']} Resume Print", "PRINT_RESUME"), - CrealityControlButton(coordinator, f"{coordinator.config['model']} Stop Print", "PRINT_STOP"), + CrealityControlButton(coordinator, f"Pause Print", "PRINT_PAUSE"), + CrealityControlButton(coordinator, f"Resume Print", "PRINT_RESUME"), + CrealityControlButton(coordinator, f"Stop Print", "PRINT_STOP"), ]) else: # Default to your original Halot resin printer buttons buttons.extend([