Mark todo entity component as strictly typed (#106718)
parent
4764af96a8
commit
faa2129e96
|
@ -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.*
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
10
mypy.ini
10
mypy.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue