mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-11-16 03:59:11 +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:
parent
94b95c04a7
commit
08c9fd9697
@ -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 logging
|
||||||
import threading
|
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__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
|
|
||||||
class DoorlockBackend(ABC):
|
class DoorlockBackend(ABC):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.callbacks = list()
|
self.callbacks = list()
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
import json
|
import json
|
||||||
import requests
|
|
||||||
from urllib.parse import urljoin
|
|
||||||
from .Door import DoorState
|
|
||||||
from .DoorlockBackend import DoorlockBackend
|
|
||||||
import logging
|
import logging
|
||||||
import threading
|
import threading
|
||||||
import time
|
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__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
from .DoorlockBackend import DoorlockBackend
|
from .DoorlockBackend import DoorlockBackend
|
||||||
|
|
||||||
|
|
||||||
class SimulationBackend(DoorlockBackend):
|
class SimulationBackend(DoorlockBackend):
|
||||||
def __init__(self, handler):
|
def __init__(self, handler):
|
||||||
super.__init__(handler)
|
super.__init__(handler)
|
||||||
|
Loading…
Reference in New Issue
Block a user