Skip to content

SpaceConfig

Bases: BaseModel

Static configuration for a parking space defined in AppConfig.spaces.

Attributes:

Name Type Description
sensor_id LowerStr

Unique sensor identifier for the space.

type SpaceType

Configured category for the space.

label str

Human-readable label shown in the site UI, mapping to a label on the parking space that is visible to users.

out_of_order bool

Whether the space should be disabled and excluded from normal availability handling. Defaults to False.

to_model()

Convert configured metadata into the persisted runtime model. All functional spaces are initialized to OCCUPIED on first configuration.

Returns:

Name Type Description
SpaceModel SpaceModel

Initial database model for the configured space.