184 files
This commit is contained in:
1 parent
7b47edbf8d
commit
0c64e47969
184 files changed
+9608
-11572
No files matched your search
@@ -849,7 +849,15 @@ class SkipTaskIntent(intent.IntentHandler):
|
||||
if err is not None:
|
||||
return err
|
||||
|
||||
await coordinator.skip_maintenance(target["task_id"])
|
||||
from homeassistant.exceptions import ServiceValidationError
|
||||
|
||||
try:
|
||||
await coordinator.skip_maintenance(target["task_id"])
|
||||
except ServiceValidationError:
|
||||
# #150: the task carries a skip lock — say so instead of failing.
|
||||
response = intent_obj.create_response()
|
||||
response.async_set_speech(_sp("skip_disabled", lang, task=target["name"]))
|
||||
return response
|
||||
|
||||
# Read the new due date back so the answer says what actually happened
|
||||
# rather than just acknowledging the command.
|
||||
|
||||
Reference in new issue
Block a user