Skip to content

Commit dca9c77

Browse files
authored
fix: allow HarpDevice objects in lick_sensor field (#1595)
* fix: allow HarpDevice objects in lick_sensor field * chore: lint
1 parent 42454fe commit dca9c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aind_data_schema/components/devices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ class LickSpout(Device):
624624
spout_diameter_unit: SizeUnit = Field(default=SizeUnit.MM, title="Spout diameter unit")
625625

626626
solenoid_valve: Device = Field(..., title="Solenoid valve")
627-
lick_sensor: Device = Field(..., title="Lick sensor")
627+
lick_sensor: Discriminated[Device | HarpDevice] = Field(..., title="Lick sensor")
628628
lick_sensor_type: Optional[LickSensorType] = Field(default=None, title="Lick sensor type")
629629

630630

0 commit comments

Comments
 (0)