Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/energy/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ async def async_update(self, update: EnergyPreferencesUpdate) -> None:
"device_consumption",
):
if key in update:
data[key] = update[key] # type: ignore[literal-required]
data[key] = update[key]

self.data = data
self._store.async_delay_save(lambda: data, 60)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/image_processing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def state(self) -> str | int | None:
confidence = f_co
for attr in (ATTR_NAME, ATTR_MOTION):
if attr in face:
state = face[attr] # type: ignore[literal-required]
state = face[attr]
break

return state
Expand Down
1 change: 1 addition & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ follow_imports = normal
local_partial_types = true
strict_equality = true
no_implicit_optional = true
report_deprecated_as_error = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = true
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ coverage==7.6.1
freezegun==1.5.1
license-expression==30.4.0
mock-open==1.4.0
mypy-dev==1.13.0a1
mypy-dev==1.14.0a2
pre-commit==4.0.0
pydantic==1.10.18
pylint==3.3.1
Expand Down
1 change: 1 addition & 0 deletions script/hassfest/mypy_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"local_partial_types": "true",
"strict_equality": "true",
"no_implicit_optional": "true",
"report_deprecated_as_error": "true",
"warn_incomplete_stub": "true",
"warn_redundant_casts": "true",
"warn_unused_configs": "true",
Expand Down