From 09d2db4821ed4ce9adf7c63c3a966b6e2d552e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Thu, 14 Jul 2022 01:19:44 +0200 Subject: [PATCH] maybe fixxed str problem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index bb70fb8..687ea67 100644 --- a/main.py +++ b/main.py @@ -24,7 +24,7 @@ def error_print(message: str): print('[ERROR]['+current_time+'] '+message) #relay -def relay_controller(pin: int, state: str): +def relay_controller(pin: int, state): print(state) if state == True: relay = gpiozero.OutputDevice(pin, active_high=True, initial_value=False)