Skip to content

Commit

Permalink
Mark datetime entity component as strictly typed (home-assistant#106717)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Dec 30, 2023
1 parent 8140036 commit 2a6a347
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .strict-typing
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ homeassistant.components.cover.*
homeassistant.components.cpuspeed.*
homeassistant.components.crownstone.*
homeassistant.components.date.*
homeassistant.components.datetime.*
homeassistant.components.deconz.*
homeassistant.components.demo.*
homeassistant.components.derivative.*
Expand Down
10 changes: 10 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,16 @@ disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true

[mypy-homeassistant.components.datetime.*]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true

[mypy-homeassistant.components.deconz.*]
check_untyped_defs = true
disallow_incomplete_defs = true
Expand Down

0 comments on commit 2a6a347

Please sign in to comment.