Typing misc fixes (#27543)
* Make async_get_conditions return type hint more specific * Exclude script/scaffold/templates/ from pre-commit mypy
This commit is contained in:
1 parent
2f6c2fadd0
commit
759ad08930
7 files changed
+24
-13
No files matched your search
@@ -205,7 +205,7 @@ async def async_get_actions(
|
||||
|
||||
async def async_get_conditions(
|
||||
hass: HomeAssistant, device_id: str, domain: str
|
||||
) -> List[dict]:
|
||||
) -> List[Dict[str, str]]:
|
||||
"""List device conditions."""
|
||||
return await _async_get_automations(hass, device_id, ENTITY_CONDITIONS, domain)
|
||||
|
||||
|
||||
Reference in new issue
Block a user