Marc Mueller
438d3b01b9
Use builtin TimeoutError [o-s] ( #109682 )
2024-02-05 12:14:37 +01:00
Jan-Philipp Benecke
9a15a5b6c2
Cleanup and migrate rest_command tests to be async ( #107264 )
...
Migrate rest_command tests to be async
2024-01-05 18:53:25 +01:00
Jan-Philipp Benecke
8bbfee7801
Make exceptions in rest_command services translatable ( #107252 )
2024-01-05 15:44:31 +01:00
RoboMagus
4485ece719
Add support for service response to RESTful command ( #97208 )
...
* Add ServiceResponse to rest_command
* Handle json and text responses.
Add Unit tests
* Rest command text output handling.
Prevent issue solved by PR#97777
* Re-raise exceptions as HomeAssistantError to enable 'continue_on_error' in scripts / automations.
* Improve test coverage
* Restructure to improve McCabe Complexity
* Remove LookupError
* Revert exception catching location
* Remove LookupError from exception handling
2024-01-05 14:27:42 +01:00
RoboMagus
f0ca27fd08
Add reload to rest_command integration ( #100511 )
...
* Add YAML reload to rest_command integration
* Add rest_command reload tests
* Fix test coverage
* Remove unnecessary call to keys
Co-authored-by: J. Nick Koston <nick@koston.org>
* Perform cleanup on reload with empty config
* Fix mypy
* Fix ruff
* Update homeassistant/components/rest_command/__init__.py
* Update __init__.py
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-09-28 16:28:38 +02:00
Ville Skyttä
5626cc4524
Use http.HTTPStatus in components/r* ( #58288 )
2021-10-23 20:53:39 +02:00
springstan
6a7caad8dc
Use content type json constant ( #40312 )
2020-09-23 20:21:55 +02:00
springstan
0c077685b6
Use content type text plain constant ( #40313 )
2020-09-20 13:19:10 +02:00
Bas Nijholt
485761bbaf
Sort imports according to PEP8 for components starting with "R" ( #29776 )
2019-12-09 14:39:51 +01:00
Pedro Lamas
db0008e62c
Allow templates in rest_command headers ( #26099 )
2019-11-25 19:39:56 -08:00
Matthew Turney
6c48abcaa5
rest_command component should support PATCH method ( #27989 )
...
Without PATCH the rest_command component lacks full RESTful API
support.
2019-10-21 11:20:18 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
b8cc547fa3
Move components to folders ( #20774 )
...
* Move all components into folders
* Move component tests into folders
* Fix init moving
* Move tests
* Lint
* Update coverage
* Fix service descriptions
* Update CODEOWNERS
2019-02-05 19:31:15 -08:00