Return the default integration key from normalized state.
(state: dict[str, Any])
| 195 | |
| 196 | |
| 197 | def default_integration_key(state: dict[str, Any]) -> str | None: |
| 198 | """Return the default integration key from normalized state.""" |
| 199 | key = state.get("default_integration") or state.get("integration") |
| 200 | return clean_integration_key(key) |
| 201 | |
| 202 | |
| 203 | def installed_integration_keys(state: dict[str, Any]) -> list[str]: |