Mark todo entity component as strictly typed (#106718)

This commit is contained in:
Franck Nijhof 2023-12-30 14:32:44 +01:00 committed by GitHub
parent 4764af96a8
commit faa2129e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -351,6 +351,7 @@ homeassistant.components.threshold.*
homeassistant.components.tibber.*
homeassistant.components.tile.*
homeassistant.components.tilt_ble.*
homeassistant.components.todo.*
homeassistant.components.tolo.*
homeassistant.components.tplink.*
homeassistant.components.tplink_omada.*

View File

@ -22,7 +22,7 @@ class ListAddItemIntent(intent.IntentHandler):
intent_type = INTENT_LIST_ADD_ITEM
slot_schema = {"item": cv.string, "name": cv.string}
async def async_handle(self, intent_obj: intent.Intent):
async def async_handle(self, intent_obj: intent.Intent) -> intent.IntentResponse:
"""Handle the intent."""
hass = intent_obj.hass

View File

@ -3272,6 +3272,16 @@ disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true
[mypy-homeassistant.components.todo.*]
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.tolo.*]
check_untyped_defs = true
disallow_incomplete_defs = true