plant.py 269 B

1234567891011121314
  1. from dataclasses import dataclass
  2. from datetime import datetime
  3. @dataclass
  4. class PlantState:
  5. timestamp: datetime
  6. source: str
  7. cpu_running: bool
  8. hydraulics_powered: bool
  9. cooling_enabled: tuple[bool, ...]
  10. heating_enabled: tuple[bool, ...]
  11. series = "plant"