We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1706fb4 commit 50d7ffdCopy full SHA for 50d7ffd
2 files changed
enapter/vucm/app.py
@@ -37,6 +37,7 @@ async def _run(self):
37
device = await self._stack.enter_async_context(
38
self._device_factory(
39
channel=enapter.mqtt.api.DeviceChannel(
40
+ client=mqtt_client,
41
hardware_id=self._config.hardware_id,
42
channel_id=self._config.channel_id,
43
)
enapter/vucm/ucm.py
@@ -1,13 +1,15 @@
1
import asyncio
2
3
+import enapter
4
+
5
from .device import Device
6
7
8
class UCM(Device):
9
def __init__(self, mqtt_client, hardware_id):
10
super().__init__(
- channel=mqtt_client.device_channel(
- hardware_id=hardware_id, channel_id="ucm"
11
+ channel=enapter.mqtt.api.DeviceChannel(
12
+ client=mqtt_client, hardware_id=hardware_id, channel_id="ucm"
13
14
15
0 commit comments