|
@@ -1,7 +1,7 @@
|
|
|
from enum import Enum
|
|
|
from typing import Dict, List, Optional
|
|
|
|
|
|
-from pydantic import BaseModel
|
|
|
+from pydantic import BaseModel, Field
|
|
|
|
|
|
|
|
|
class ThermalMode(str, Enum):
|
|
@@ -11,14 +11,14 @@ class ThermalMode(str, Enum):
|
|
|
|
|
|
|
|
|
class DevicesInstructionsBaseResponse(BaseModel):
|
|
|
- projectId: str
|
|
|
- equipId: str
|
|
|
+ project_id: str = Field(None, alias='projectId')
|
|
|
+ device_id: str = Field(None, alias='equipId')
|
|
|
output: Dict
|
|
|
|
|
|
|
|
|
class DevicesEarlyStartTime(BaseModel):
|
|
|
- projectId: str
|
|
|
- spaceId: str
|
|
|
+ project_id: str = Field(None, alias='projectId')
|
|
|
+ space_id: str = Field(None, alias='spaceId')
|
|
|
minutes: float
|
|
|
|
|
|
|
|
@@ -46,11 +46,11 @@ class ACATFCInstructionsRequest(BaseModel):
|
|
|
|
|
|
|
|
|
class ACATFCInstructionsResponse(BaseModel):
|
|
|
- switch_set: int
|
|
|
- speed_set: int
|
|
|
- temperature_set: float
|
|
|
- mode_set: int
|
|
|
- water_valve_switch_set: int
|
|
|
+ switch_set: int = Field(None, alias='onOff')
|
|
|
+ speed_set: int = Field(None, alias='speed')
|
|
|
+ temperature_set: float = Field(None, alias='temperature')
|
|
|
+ mode_set: int = Field(None, alias='mode')
|
|
|
+ water_valve_switch_set: int = Field(None, alias='water')
|
|
|
|
|
|
|
|
|
class Space(BaseModel):
|
|
@@ -71,6 +71,6 @@ class ACATVAInstructionsRequest(BaseModel):
|
|
|
|
|
|
|
|
|
class ACATVAInstructionsResponse(BaseModel):
|
|
|
- supply_air_flow_set: float
|
|
|
- virtual_temperature_target_set: float
|
|
|
- virtual_realtime_temperature: float
|
|
|
+ supply_air_flow_set: float = Field(None, alias='SupplyAirFlowSet')
|
|
|
+ virtual_temperature_target_set: float = Field(None, alias='TargetTemperatureSet')
|
|
|
+ virtual_realtime_temperature: float = Field(None, alias='VirtualRealtimeTemperature')
|