mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 19:21:33 +02:00
Smart plugs with "Show on Printer Card" enabled appear as a chip in the HA-entities row below the main plug controls. One click cut power to the printer instantly — including mid-print — while the main Off button right next to it already routes through a ConfirmModal. The HA-row chip was added later and skipped the same gating. Branch on entity type: script.* entities keep firing instantly (fire-once triggers, not power switches — confirming each click would be annoying), but switch/light/anything-else entities now open a ConfirmModal first. Reuses the same variant="danger" + running-print warning copy as the existing power-off confirmation when status.state === 'RUNNING'.