mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
updated the typing of the event_type field
This commit is contained in:
parent
bea2e403d6
commit
6f4d91440f
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
from pydantic import BaseModel, Field, BeforeValidator
|
from pydantic import BaseModel, Field, BeforeValidator
|
||||||
from typing import Annotated, List, Optional
|
from typing import Annotated, List, Optional, Literal
|
||||||
|
|
||||||
# Example constants for validation
|
# Example constants for validation
|
||||||
TYPICAL_MEASURE_TYPES = [
|
TYPICAL_MEASURE_TYPES = [
|
||||||
|
|
@ -95,4 +95,4 @@ class PlanTriggerRequest(BaseModel):
|
||||||
|
|
||||||
# When performing a remote assessment, if this has been set, it will allow the engine to
|
# When performing a remote assessment, if this has been set, it will allow the engine to
|
||||||
# pull data from the find my epc website, to utilise as part of a remote assessment
|
# pull data from the find my epc website, to utilise as part of a remote assessment
|
||||||
event_type: Optional[float] = "remote_assessment",
|
event_type: Optional[Literal["remote_assessment"]] = None
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue