Restore is POST /s/submit/restore-delivery, wired to switch.turn_off. Its popup only exists once an order is actually skipped, which is why it could not be found earlier; verified end to end by skipping Aug 18 and restoring it. Fixes two bugs found while testing that. async_fetch treated popup and AJAX fragments as full pages, so the signed-in heuristic read them as logged out and skip could never run. And the to-do list mixed box produce with add-ons, which would have invited deletes with no endpoint behind them: only add-ons are add/removable, so the entity is now scoped to those.
90 lines
1.9 KiB
JSON
90 lines
1.9 KiB
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"description": "Sign in with your freshharvest.com account.",
|
|
"data": {
|
|
"email": "Email",
|
|
"password": "Password"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"cannot_connect": "Failed to connect",
|
|
"invalid_auth": "Invalid authentication"
|
|
},
|
|
"abort": {
|
|
"already_configured": "This account is already configured"
|
|
}
|
|
},
|
|
"entity": {
|
|
"sensor": {
|
|
"next_delivery": {
|
|
"name": "Next delivery"
|
|
},
|
|
"delivery_day": {
|
|
"name": "Delivery day"
|
|
},
|
|
"next_delivery_total": {
|
|
"name": "Next delivery total"
|
|
},
|
|
"next_delivery_subtotal": {
|
|
"name": "Next delivery subtotal"
|
|
},
|
|
"next_delivery_box_price": {
|
|
"name": "Next delivery box price"
|
|
},
|
|
"next_delivery_add_ons": {
|
|
"name": "Next delivery add-ons"
|
|
},
|
|
"next_delivery_tax": {
|
|
"name": "Next delivery tax"
|
|
},
|
|
"next_delivery_delivery_fee": {
|
|
"name": "Next delivery fee"
|
|
},
|
|
"next_delivery_items": {
|
|
"name": "Next delivery items"
|
|
},
|
|
"open_order_delivery": {
|
|
"name": "Open order delivery"
|
|
},
|
|
"open_order_total": {
|
|
"name": "Open order total"
|
|
},
|
|
"open_order_free_delivery_remaining": {
|
|
"name": "Open order free delivery remaining"
|
|
},
|
|
"shop_window": {
|
|
"name": "Shopping window"
|
|
},
|
|
"subscriptions": {
|
|
"name": "Subscriptions"
|
|
},
|
|
"vacation_holds": {
|
|
"name": "Vacation holds"
|
|
}
|
|
},
|
|
"binary_sensor": {
|
|
"order_open": {
|
|
"name": "Order open"
|
|
}
|
|
},
|
|
"switch": {
|
|
"skip_open_order": {
|
|
"name": "Skip next order"
|
|
}
|
|
},
|
|
"button": {
|
|
"donate_open_order": {
|
|
"name": "Donate next order"
|
|
}
|
|
},
|
|
"todo": {
|
|
"add_ons": {
|
|
"name": "Add-ons"
|
|
}
|
|
}
|
|
}
|
|
}
|