Skip to content

Commit 2792000

Browse files
authored
Update entities.py
Removed sync for close
1 parent 1a0df03 commit 2792000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/weishaupt_modbus/entities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ async def set_translate_val(self, value):
336336
await self._modbus_api.connect()
337337
mbo = ModbusObject(self._modbus_api, self._modbus_item)
338338
await mbo.setvalue(val)
339-
await self._modbus_api.close()
339+
self._modbus_api.close()
340340

341341
def my_device_info(self) -> DeviceInfo:
342342
"""function helper to build the device info"""

0 commit comments

Comments
 (0)