From 758a783ede788fb9ed396a6da810837ef018807c Mon Sep 17 00:00:00 2001 From: dw-0 Date: Sun, 3 Mar 2024 21:01:30 +0100 Subject: [PATCH] refactor(moonraker): allow re-running installer if instance count already matches Signed-off-by: Dominik Willner --- kiauh/components/moonraker/moonraker_setup.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kiauh/components/moonraker/moonraker_setup.py b/kiauh/components/moonraker/moonraker_setup.py index f27580b..2cfdd0d 100644 --- a/kiauh/components/moonraker/moonraker_setup.py +++ b/kiauh/components/moonraker/moonraker_setup.py @@ -130,12 +130,6 @@ def check_moonraker_install_requirements() -> bool: Logger.print_warn("Moonraker cannot be installed! Install Klipper first.") return False - mr_instance_count = len(InstanceManager(Moonraker).instances) - if mr_instance_count >= kl_instance_count: - Logger.print_warn("Unable to install more Moonraker instances!") - Logger.print_warn("More Klipper instances required.") - return False - return True