Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#69)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.10.1 → 23.11.0](psf/black@23.10.1...23.11.0)
- [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.1](pre-commit/mirrors-mypy@v1.6.1...v1.7.1)
- [github.com/pre-commit/mirrors-prettier: v3.0.3 → v4.0.0-alpha.3](pre-commit/mirrors-prettier@v3.0.3...v4.0.0-alpha.3)

* pre-commit

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Bibo-Joshi authored Dec 9, 2023
1 parent 36a32d2 commit be71ea0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default_language_version:

repos:
- repo: https://github.com/psf/black
rev: 23.10.1
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
Expand All @@ -29,7 +29,7 @@ repos:
- uvicorn[standard]~=0.24.0
- APScheduler~=3.10.4
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.7.1
hooks:
- id: mypy
additional_dependencies:
Expand Down
12 changes: 6 additions & 6 deletions components/alarmeffect.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@


class InputAlarmEffect(BaseModel):
start: dtm.time | None = Field(default=None, example="06:00")
end: dtm.time | None = Field(default=None, example="07:00")
off: dtm.time | None = Field(default=None, example="08:00")
start: dtm.time | None = Field(default=None, examples=["06:00"])
end: dtm.time | None = Field(default=None, examples=["07:00"])
off: dtm.time | None = Field(default=None, examples=["08:00"])
timezone: str | None = None
start_value: int | None = Field(default=None, ge=0, le=255)
end_value: int | None = Field(default=None, ge=0, le=255)


class AlarmEffect(BaseModel, BaseEffect):
start: dtm.time = Field(example="06:00")
end: dtm.time = Field(example="07:00")
off: dtm.time = Field(example="08:00")
start: dtm.time = Field(examples=["06:00"])
end: dtm.time = Field(examples=["07:00"])
off: dtm.time = Field(examples=["08:00"])
timezone: str = "Europe/Berlin"
start_value: int = Field(default=0, ge=0, le=255)
end_value: int = Field(default=255, ge=0, le=255)
Expand Down

0 comments on commit be71ea0

Please sign in to comment.