File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33from enapter import log , mqtt
44
55from .config import Config
6- from .device import Device
76from .device_driver import DeviceDriver
7+ from .device_protocol import DeviceProtocol
88from .ucm import UCM
99
1010
11- async def run (device : Device ) -> None :
11+ async def run (device : DeviceProtocol ) -> None :
1212 log .configure (level = log .LEVEL or "info" )
1313 config = Config .from_env ()
1414 async with asyncio .TaskGroup () as tg :
@@ -18,7 +18,7 @@ async def run(device: Device) -> None:
1818class App :
1919
2020 def __init__ (
21- self , task_group : asyncio .TaskGroup , config : Config , device : Device
21+ self , task_group : asyncio .TaskGroup , config : Config , device : DeviceProtocol
2222 ) -> None :
2323 self ._config = config
2424 self ._device = device
You can’t perform that action at this time.
0 commit comments