rjulius23
7d29eb282b
Add enumerate to builtins in python_script component ( #54244 )
2021-08-07 22:02:20 -07:00
Philip Allgaier
6fe04f40a2
Ensure HA script and Python script services have a name ( #47204 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-03-31 15:09:45 +02:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
J. Nick Koston
3bb0e00abe
Update python_script tests to use async_add_executor_job ( #41553 )
2020-10-09 15:58:36 +02:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ( #35109 )
...
* Use asynctest-mock in most places
* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Franck Nijhof
906385172a
String formatting improvements for tests ( #33663 )
2020-04-05 00:26:08 +02:00
Franck Nijhof
687a052d40
Migrate python_script tests from coroutine to async/await ( #30335 )
2019-12-31 22:48:43 +01:00
Louis-Dominique Dubeau
33cbb398ad
Don't use the locals parameter on exec. ( #29979 )
...
Using the locals parameter makes it so that the code of a Python script runs as
if it were in the body of a ``class``. One effect of this is that functions
defined as part of a script cannot call one another directly.
Fixes : #24704 , #13653
2019-12-16 09:39:20 +01:00
Bas Nijholt
21816eeed4
Sort imports according to PEP8 for components starting with "P" ( #29775 )
2019-12-09 14:29:39 +01:00
Jeff Irion
aff151c90a
Load user-provided descriptions for python_scripts ( #26069 )
...
* Load user-provided descriptions for python_scripts
* Import SERVICE_DESCRIPTION_CACHE
* Use async_set_service_schema to register service descriptions
* Add python_script tests for loading service descriptions
* Use async/await in test
2019-08-22 11:01:56 -07: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