Skip to content

Commit

Permalink
Update entities.py
Browse files Browse the repository at this point in the history
Removed sync for close
  • Loading branch information
OStrama authored Oct 25, 2024
1 parent 1a0df03 commit 2792000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/weishaupt_modbus/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ async def set_translate_val(self, value):
await self._modbus_api.connect()
mbo = ModbusObject(self._modbus_api, self._modbus_item)
await mbo.setvalue(val)
await self._modbus_api.close()
self._modbus_api.close()

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

0 comments on commit 2792000

Please sign in to comment.