1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 10:24:26 +01:00

Sort Imports

Sort imports for AvrDoorlock.py, DoorlockBackend.py, NukiBridge.py,
SimulationBackend.py

Signed-off-by: Thomas Schmid <tom@lfence.de>
This commit is contained in:
Thomas 2022-11-17 18:35:06 +01:00
parent 94b95c04a7
commit 08c9fd9697
4 changed files with 15 additions and 10 deletions

View File

@ -1,10 +1,12 @@
from .DoorlockBackend import DoorlockBackend
from .Protocol import Protocol
from .Door import DoorState
from serial import Serial
from time import sleep
import logging
import threading
from time import sleep
from serial import Serial
from .Door import DoorState
from .DoorlockBackend import DoorlockBackend
from .Protocol import Protocol
log = logging.getLogger(__name__)

View File

@ -1,5 +1,6 @@
from abc import ABC, abstractmethod
class DoorlockBackend(ABC):
def __init__(self):
self.callbacks = list()

View File

@ -1,12 +1,13 @@
import json
import requests
from urllib.parse import urljoin
from .Door import DoorState
from .DoorlockBackend import DoorlockBackend
import logging
import threading
import time
from typing import Set
from urllib.parse import urljoin
import requests
from .Door import DoorState
from .DoorlockBackend import DoorlockBackend
log = logging.getLogger(__name__)

View File

@ -1,5 +1,6 @@
from .DoorlockBackend import DoorlockBackend
class SimulationBackend(DoorlockBackend):
def __init__(self, handler):
super.__init__(handler)