Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed Dec 31, 2024
1 parent 82e7e41 commit c2d5059
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/evohomeasync2/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
SZ_ALLOWED_MODES: Final = "allowed_modes"
SZ_ALLOWED_SETPOINT_MODES: Final = "allowed_setpoint_modes"
SZ_ALLOWED_SYSTEM_MODES: Final = "allowed_system_modes"
SZ_CAN_BE_PERMANENT: Final = "can_be_permanent"
SZ_CAN_BE_TEMPORARY: Final = "can_be_temporary"
SZ_COUNTRY: Final = "country"
SZ_CURRENT_OFFSET_MINUTES: Final = "current_offset_minutes"
SZ_DAILY_SCHEDULES: Final = "daily_schedules"
Expand Down Expand Up @@ -53,6 +55,7 @@
SZ_TIME_UNTIL: Final = "time_until"
SZ_TIME_ZONE: Final = "time_zone"
SZ_TIME_ZONE_ID: Final = "time_zone_id"
SZ_TIMING_MODE: Final = "timing_mode"
SZ_UNTIL: Final = "until"
SZ_USE_DAYLIGHT_SAVE_SWITCHING: Final = "use_daylight_save_switching"
SZ_USER_ID: Final = "user_id"
Expand Down
6 changes: 3 additions & 3 deletions src/evohomeasync2/schemas/typedefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ class EvoAllowedSystemModesResponseT(TypedDict):
system_mode: SystemMode
can_be_permanent: Literal[True]
can_be_temporary: bool
max_duration: NotRequired[str]
timing_resolution: NotRequired[str]
timing_mode: NotRequired[str]
max_duration: NotRequired[str] # when can_be_temporary is True
timing_resolution: NotRequired[str] # when can_be_temporary is True
timing_mode: NotRequired[str] # when can_be_temporary is True


class EvoTcsConfigResponseT(EvoTcsConfigEntryT):
Expand Down

0 comments on commit c2d5059

Please sign in to comment.