Skip to content

Commit d6c7fbe

Browse files
committed
standalone: run: accept DeviceProtocol instead of Device
1 parent 725759d commit d6c7fbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/enapter/standalone/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from enapter import log, mqtt
44

55
from .config import Config
6-
from .device import Device
76
from .device_driver import DeviceDriver
7+
from .device_protocol import DeviceProtocol
88
from .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:
1818
class 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

0 commit comments

Comments
 (0)