Commit graph

31 commits

Author SHA1 Message Date
Franck Nijhof
e1036f3c71
Upgrade restrictedpython to 5.2 () 2021-11-28 16:34:15 +01:00
Franck Nijhof
23cb396aad
Upgrade restrictedpython to 5.2a1.dev0 () 2021-11-04 14:52:57 +01:00
rjulius23
7d29eb282b
Add enumerate to builtins in python_script component () 2021-08-07 22:02:20 -07:00
Marc Mueller
10bfc78365
Fix missing encoding with open() ()
* Fix missing encoding with open()

* Fix tests

* Improve open - frontend
2021-07-28 09:41:45 +02:00
Philip Allgaier
6fe04f40a2
Ensure HA script and Python script services have a name ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-03-31 15:09:45 +02:00
Joakim Sørensen
b1c2cde40b
Changes to filename and path validation ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-01-26 15:53:21 +01:00
Mike Miller
dc1d08be70
Upgrade restrictedpython to 5.1 (needed for python 3.9 support) () 2020-12-14 10:06:21 +01:00
jaydesl
f92ebde75a
Add more builtins to safe list (python_script) () 2020-10-22 09:59:49 +02:00
Franck Nijhof
7653dc947a
Enable pylint unnecessary-pass ()
* Enable pylint unnecessary-pass

* Process review suggestions

* Fix smhi tests
2020-04-05 10:33:07 +02:00
Franck Nijhof
7d3c974747
Use set & dict literals ()
Co-authored-by: Daniel Høyer Iversen <mail@dahoiv.net>
2020-04-04 20:05:15 +02:00
Paulus Schoutsen
f1d3c0d19b
Remove unused manifest fields () 2020-04-03 12:58:19 -07:00
Franck Nijhof
bfa0edaf92 Migrate Integration Quality Scale from docs to manifest: internal () 2020-01-07 20:58:49 +01:00
Franck Nijhof
dc02c28891 Correct names in manifests (M-P) () 2020-01-07 13:28:35 +01:00
Franck Nijhof
a84741392b
Format all manifests with prettier () 2020-01-06 21:28:23 +01:00
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations () 2020-01-02 21:17:10 +02:00
Louis-Dominique Dubeau
33cbb398ad Don't use the locals parameter on exec. ()
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: , 
2019-12-16 09:39:20 +01:00
springstan
8baba2e33d Move imports to top for python_script () 2019-12-03 00:53:04 +01:00
Ville Skyttä
99c7608fb4 Lint config cleanups ()
* Remove bunch of unneeded lint exclusions

* Use symbolic names instead of identifiers in pylint disables

* Tighten scope of some pylint disables
2019-11-25 22:40:08 -08:00
Franck Nijhof
c7da781efc Update documentation link URL for integrations in all manifests () 2019-10-02 09:25:44 -07:00
Franck Nijhof
c8fb7ce98b Bump restrictedpython to 5.0 () 2019-09-19 14:30:25 -07:00
Franck Nijhof
decf13b948 Use literal string interpolation in core (f-strings) () 2019-08-23 09:53:33 -07:00
Jeff Irion
aff151c90a Load user-provided descriptions for python_scripts ()
* 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
Fabian Affolter
74b6b8a9f6 Upgrade restrictedpython to 4.0 () 2019-08-16 16:16:42 +02:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Alok Saboo
0eb8c77889 Create services.yaml for python_script and script ()
* Create services.yaml for python_script

* Create services.yaml for script
2019-04-18 13:10:25 -07:00
cgtobi
2c07bfb9e0 Remove dependencies and requirements ()
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2c.

* Remove dependencies and requirements

* Fix flake8 complaints

* Fix more flake8 complaints

* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
cfe4cf30ad
Add manifests ()
* Add manifests

* Update auto name

* Update codeowners

* Add requirements from platforms

* Minor cleanup

* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Tobias Sauerwein
048b100eea Clean up docstrings ()
* Clean up docstrings

* Fix long lines

* Fix more docstrings

* Fix more docstrings

* Fix more docstrings
2019-04-03 17:40:03 +02:00
Daniel Høyer Iversen
519315f9c8 pylint 2.3.0 ()
* pylint 2.3.0

* remove const

*  disable=syntax-error
2019-02-27 16:10:40 -05:00
Fabian Affolter
b6854a82cf Upgrade restrictedpython to 4.0b8 () 2019-02-12 13:44:32 -08:00
Paulus Schoutsen
b8cc547fa3
Move components to folders ()
* 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