mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 02:37:50 +00:00
Don't filter nevermind for fallback (#141294)
This commit is contained in:
parent
9fdb69c558
commit
4472dc533d
@ -125,7 +125,7 @@ SAVE_DELAY = 10
|
|||||||
@callback
|
@callback
|
||||||
def _async_local_fallback_intent_filter(result: RecognizeResult) -> bool:
|
def _async_local_fallback_intent_filter(result: RecognizeResult) -> bool:
|
||||||
"""Filter out intents that are not local fallback."""
|
"""Filter out intents that are not local fallback."""
|
||||||
return result.intent.name in (intent.INTENT_GET_STATE, intent.INTENT_NEVERMIND)
|
return result.intent.name in (intent.INTENT_GET_STATE)
|
||||||
|
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
@ -684,7 +684,7 @@ def test_fallback_intent_filter() -> None:
|
|||||||
entities_list=[],
|
entities_list=[],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
is True
|
is False
|
||||||
)
|
)
|
||||||
assert (
|
assert (
|
||||||
_async_local_fallback_intent_filter(
|
_async_local_fallback_intent_filter(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user