devices.py 378 B

12345678910111213141516171819202122
  1. from enum import Enum
  2. from typing import Dict
  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. output: Dict
  12. class DevicesEarlyStartTime(BaseModel):
  13. projectId: str
  14. spaceId: str
  15. minutes: float