Skip to content

Commit 57a109d

Browse files
some msgspec improvements
1 parent e5fbf4a commit 57a109d

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

core/pioreactor/automations/events.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,37 @@
22
from pioreactor.structs import AutomationEvent
33

44

5-
class NoEvent(AutomationEvent):
5+
class NoEvent(AutomationEvent, tag="NoEvent"):
66
pass
77

88

9-
class DilutionEvent(AutomationEvent):
9+
class DilutionEvent(AutomationEvent, tag="DilutionEvent"):
1010
pass
1111

1212

13-
class DosingStarted(AutomationEvent):
13+
class DosingStarted(AutomationEvent, tag="DosingStarted"):
1414
pass
1515

1616

17-
class DosingStopped(AutomationEvent):
17+
class DosingStopped(AutomationEvent, tag="DosingStopped"):
1818
pass
1919

2020

21-
class AddMediaEvent(AutomationEvent):
21+
class AddMediaEvent(AutomationEvent, tag="AddMediaEvent"):
2222
pass
2323

2424

25-
class AddAltMediaEvent(AutomationEvent):
25+
class AddAltMediaEvent(AutomationEvent, tag="AddAltMediaEvent"):
2626
pass
2727

2828

29-
class ChangedLedIntensity(AutomationEvent):
29+
class ChangedLedIntensity(AutomationEvent, tag="ChangedLedIntensity"):
3030
pass
3131

3232

33-
class ErrorOccurred(AutomationEvent):
33+
class ErrorOccurred(AutomationEvent, tag="ErrorOccurred"):
3434
pass
3535

3636

37-
class UpdatedHeaterDC(AutomationEvent):
37+
class UpdatedHeaterDC(AutomationEvent, tag="UpdatedHeaterDC"):
3838
pass

core/pioreactor/background_jobs/leader/mqtt_to_db_streaming.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from pioreactor import exc
1313
from pioreactor import structs
1414
from pioreactor import types as pt
15+
from pioreactor.automations import events as automation_events # noqa: F401
1516
from pioreactor.background_jobs.base import LongRunningBackgroundJob
1617
from pioreactor.config import config
1718
from pioreactor.hardware import get_pwm_to_pin_map

0 commit comments

Comments
 (0)