Files
core/tests/components
corneyl a848dc1155 Add service for adding products to a Picnic order (#67877)
* Add Picnic services for searching products and adding products to the cart

* Improve the Picnic services implementation and add unit tests

* Fix pre-commit check issues

* Fix comments and example product name

* Remove search service, update add_product service schema

* Fix pylint suggestion

* Add more tests and removed unused code

* Remove code needed for the removed service, clean tests from obvious comments and add type hints

* Remove unused import

* Remove unnecessary comments and simplify getting the config entry id

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* Don't use hass.data in tests, make device id mandatory for service

* Rewrite all service tests so using lru.cache is not needed

* Add test for uncovered line in _product_search()

* Require a config entry id as service parameter instead of device id

* Use explicit check in get_api_client() and raise HomeAssistantError

* Fix HomeAssistantError import, fix services tests

* Change HomeAssistantError to ValueError when config entry is not found

Co-authored-by: Allen Porter <allen.porter@gmail.com>
2022-11-12 20:15:45 -08:00
..
2022-09-20 18:33:45 +02:00
2022-10-13 07:31:33 -06:00
2022-04-20 08:56:05 +02:00
2022-10-18 12:06:51 +02:00
2022-09-20 10:50:07 -04:00
2022-04-26 23:09:10 -07:00
2022-09-28 07:41:33 +02:00
2022-09-05 07:55:12 -05:00
2022-10-15 13:57:23 -04:00
2022-09-20 18:33:45 +02:00
2022-10-15 13:57:23 -04:00
2022-10-15 13:57:23 -04:00
2022-09-28 08:06:24 +02:00
2022-11-07 14:40:23 +01:00
2022-09-09 08:57:14 +02:00
2022-10-15 13:57:23 -04:00
2022-11-09 11:09:21 +01:00
2022-04-26 16:32:00 +02:00
2022-10-31 11:09:15 +01:00
2022-10-01 21:22:18 -07:00
2022-08-17 22:37:47 -04:00
2022-10-28 17:25:44 -05:00
2022-11-11 10:08:26 -06:00
2022-10-21 22:54:42 +02:00
2022-11-03 03:10:07 +01:00
2022-09-13 10:07:38 +02:00
2022-10-15 13:57:23 -04:00
2022-10-14 13:09:00 +02:00
2022-09-19 15:22:23 +02:00
2022-09-19 15:22:23 +02:00
2022-10-15 13:57:23 -04:00
2022-10-15 13:57:23 -04:00
2022-10-26 18:35:12 +02:00