Python: Fix Lock import

This commit is contained in:
Jarno Rankinen 2023-01-29 14:41:25 +02:00
parent ddfbc4610d
commit 7a8a7ec7bb
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.vscode/

View File

@ -1,7 +1,7 @@
import minimalmodbus import minimalmodbus
import logging import logging
from flask import jsonify from flask import jsonify
from threading import Semaphore from threading import Lock
from time import sleep from time import sleep
class PingvinCoil(): class PingvinCoil():

View File

@ -6,7 +6,7 @@ import threading
from waitress import serve from waitress import serve
VERSION = "0.0.1" VERSION = "0.0.1"
DEBUG = True DEBUG = False
## Logging configuration ## Logging configuration
log = logging.getLogger(__name__) log = logging.getLogger(__name__)