Skip to content

Commit

Permalink
Use tuple to store states.
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Oct 6, 2023
1 parent 439ec65 commit c58bef7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyplumio/helpers/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
STATE_NIGHT: Final = "night"
STATE_DAY: Final = "day"

STATES_ON: Final = [
STATES_ON: Final = (
STATE_ON,
STATE_DAY,
]
)

STATES_OFF: Final = [
STATES_OFF: Final = (
STATE_OFF,
STATE_NIGHT,
]
)


def _parse_interval(start: str, end: str) -> tuple[int, int]:
Expand Down

0 comments on commit c58bef7

Please sign in to comment.