Skip to content

Commit

Permalink
setitem should not require await.... wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianTremblay committed Oct 15, 2023
1 parent 6116db6 commit ef555d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BAC0/core/devices/AsyncDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"""
import os.path
import asyncio

# --- standard Python modules ---
from collections import namedtuple
Expand Down Expand Up @@ -626,7 +627,7 @@ def __setitem__(self, point_name, value):
device['point_name'] = value
"""
try:
self._findPoint(point_name)._set(value)
asyncio.create_task(self._findPoint(point_name)._set(value))
except WritePropertyException as ve:
self._log.error("{}".format(ve))

Expand Down

0 comments on commit ef555d7

Please sign in to comment.