devices.py 491 B

1234567891011121314151617181920212223
  1. from enum import Enum
  2. from typing import Optional
  3. from pydantic import BaseModel
  4. class ThermalMode(str, Enum):
  5. cooling = 'cooling'
  6. heating = 'heating'
  7. hold = 'hold'
  8. class DevicesInstructionsBaseResponse(BaseModel):
  9. projectId: str
  10. equipId: str
  11. class ACATAHThermalModeSetResponse(DevicesInstructionsBaseResponse):
  12. thermal_mode_set: ThermalMode
  13. class ACATAHSupplyAirTemperatureSetResponse(DevicesInstructionsBaseResponse):
  14. supply_air_temperature_set: float