From 6888c17cebc39a4032341e61a30fc28a31a85b21 Mon Sep 17 00:00:00 2001 From: TShapinsky Date: Tue, 30 Jan 2024 14:49:45 -0700 Subject: [PATCH] fix capitalization --- alfalfa_bacnet_bridge/alfalfa_watchdog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alfalfa_bacnet_bridge/alfalfa_watchdog.py b/alfalfa_bacnet_bridge/alfalfa_watchdog.py index a3f6515..98c31e3 100644 --- a/alfalfa_bacnet_bridge/alfalfa_watchdog.py +++ b/alfalfa_bacnet_bridge/alfalfa_watchdog.py @@ -61,7 +61,7 @@ async def main_loop(host: str, alfalfa_site: str, command: str): logger.info(f"Found new site with ID: '{site_id}'") status = client.status(site_id) logger.info(f"Site status is: '{status}'") - if status == "running": + if status == "RUNNING": if is_process_alive(child_process): logger.info(f"Killing old child process: '{child_process.pid}'") child_process.kill()