Commit Graph

54 Commits (75b37b4c2a0bdf68076ecc9eb556c9066e472e9f)

Author SHA1 Message Date
Martin Hjelmare 568180632e
Fix sync oath2 scaffold template () 2021-02-08 15:00:17 +01:00
Erik Montnemery f99c27c6d4
Remove unneeded from_state from device triggers () 2021-02-08 11:09:45 +01:00
Paulus Schoutsen 352d0870e3
Light significant changes + sensor tweaks () 2021-01-26 22:11:06 +01:00
Paulus Schoutsen 712a5a098d
Add significant change filtering to Google () 2021-01-26 21:45:09 +01:00
Paulus Schoutsen d082be787f
Add "significant change" base () 2021-01-26 14:13:27 +01:00
Paulus Schoutsen e584902b8b
Remove empty schema () 2021-01-11 14:25:09 +01:00
Franck Nijhof 65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Paulus Schoutsen 7d23ff6511
Add device action to mobile app to notify () 2020-12-01 18:14:01 +01:00
Paulus Schoutsen f9fa24950b
OAuth2 to use current request header () 2020-11-27 08:55:34 +01:00
Allen Porter b228ffc761
Add missing config flow translation key to script scaffold ()
Add missing config key for no_url_available when generating new oauth2
config entry based integrations.  This was found in issue  where
the nest integration was missing a string when a user had a misconfiguration.
2020-10-30 09:51:22 +01:00
Paulus Schoutsen 1c36bf5e19
Fix block till done in create entry config flow tests () 2020-10-24 16:20:56 +02:00
Paulus Schoutsen e7b6903ef4
Improve the readability of the config flow code () 2020-10-22 13:00:55 +02:00
Philip Allgaier dde6305549
Cleanup unused loggers (components N-Z + tests) () 2020-10-16 21:24:08 -05:00
Allen Porter 42cef1773b
Update script scaffold templates for config_flow_oauth2 ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-10-07 15:23:45 +02:00
Daniel Hjelseth Høyer 9d3ddb8981
Scaffold: correct import () 2020-10-02 08:32:03 +02:00
Aidan Timson 09efbc569f
Fix oauth2 template by updating outdated method name () 2020-08-31 10:25:25 +02:00
Franck Nijhof 1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
Martin Hjelmare b4142fc7ee
Add const module to oauth2 scaffold template ()
* Add const module to oauth2 template

* Remove const append

* Add domain to const
2020-05-10 12:10:09 +02:00
Paulus Schoutsen 42fc332123
Fix scaffold and hassfest references () 2020-05-09 15:50:44 -07:00
Paulus Schoutsen 34e35f6aa3
Add config flow base strings () 2020-05-04 20:10:39 -07:00
Paulus Schoutsen ec47216388
Use built-in test helpers on 3.8 () 2020-04-30 13:29:50 -07:00
Ville Skyttä 435a88636a
Address new issues flagged by flake8 3.8.0a2 () 2020-04-30 21:37:58 +02:00
Paulus Schoutsen e002c84eba
Don't set step title if it's integration title () 2020-04-22 15:05:39 +02:00
Franck Nijhof bc5a2da7b7
Add transition support to scenes, cleanup blocking parameter () 2020-04-20 18:07:50 -07:00
Paulus Schoutsen d36204a968
Move title translation to root () 2020-04-15 09:41:18 -07:00
Paulus Schoutsen 8e6e8dfbe0
Migrate translations_develop script ()
* Migrate translations_develop script

* Fix lint
2020-04-10 14:17:09 -07:00
Paulus Schoutsen f975654ae7
Mock setup_entry in oauth2 tests ()
* Mock setup_entry in oauth2 tests

* Fix scaffold constant
2020-02-23 12:23:21 +01:00
Paulus Schoutsen 71a81c443f
Limit translations_develop to an integration ()
* limit translations_develop to english

* Convert to Python

* Limit to integration

* Add to hassfest

* Remove old bash comment
2020-02-14 09:26:50 -08:00
Christian Clauss df7d2b3aeb
Fix typos found by codespell ()
* Fix typos found by codespell

* Fix typos found by codespell

* codespell: Furture  ==> Future

* Update test_config_flow.py

* Update __init__.py

* Spellcheck: successfull  ==> successful

* Codespell: unsuccesful  ==> unsuccessful

* Codespell: cant  ==> can't

* Codespell: firware ==> firmware

* Codespell: mimick  ==> mimic
2020-01-31 08:33:00 -08:00
Paulus Schoutsen e9e44dbd97
Fix callback and async ()
* Fix callback and async

* Fix a return

* Fix test

* Fix mqtt tests

* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Christian Clauss 1d537ad416 Fix typo: serivce --> service () 2020-01-27 19:56:26 +01:00
Ville Skyttä 5e2ba2eb77
Enable some more bandit checks ()
* Enable B108 (hardcoded tmp dir), address findings

* Enable B602 (subprocess popen with shell), address findings

* Enable B604 (start process with shell), address findings

* Enable B306 (mktemp), B307 (eval), and B325 (tempnam), no issues to address
2020-01-20 18:44:55 +02:00
Paulus Schoutsen f50714d7e9 Update config flow test scaffolding ()
* Update config flow test scaffolding

* asyncpatch -> patch

* Update classname
2020-01-13 15:20:25 +01:00
Ville Skyttä 5216477353
Be consistent with Home Assistant and Hass.io spelling ()
* Be consistent with Home Assistant spelling

* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
cgtobi d4ff214fce Clean up scaffold () 2019-12-22 19:53:03 +01:00
Paulus Schoutsen b058742404
Fix condition typo () 2019-12-16 09:33:11 +01:00
Bas Nijholt 5cb6d1b21f Sort imports according to PEP8 for 'script' folder () 2019-12-09 16:24:03 +01:00
Paulus Schoutsen 004476a1f8 Add intent integration to expose intent handle API ()
* Add intent integration to expose intent handle API.

* Run hassfest + fix scaffolding

* Update __init__.py
2019-11-27 11:25:43 +01:00
cgtobi 6da01904c4 Fix typo in scaffold generator script () 2019-11-25 14:42:40 +01:00
Paulus Schoutsen 16a80beb43 Fix scaffold 2019-11-04 14:14:57 -08:00
Fabian Affolter 314c3d0965 Use integration name in docstring () 2019-11-02 21:28:07 -07:00
Paulus Schoutsen 24c29f9227
Add OAuth2 config flow scaffold ()
* Add OAuth2 scaffold

* Generate integration if non-existing domain specified

* Update URL
2019-10-29 20:34:03 -07:00
Ville Skyttä 759ad08930 Typing misc fixes ()
* Make async_get_conditions return type hint more specific

* Exclude script/scaffold/templates/ from pre-commit mypy
2019-10-14 13:03:37 -07:00
Paulus Schoutsen a82ff4f7a9
Add strings for device automations to scaffold () 2019-10-12 14:09:06 -07:00
Erik Montnemery dbe366933f Fix typing for device condition scaffold () 2019-10-12 16:37:32 +03:00
Erik Montnemery 0ba4ee1398 Validate generated device actions ()
* Validate generated actions

* Use hass.services.async_call instead of service.async_call_from_config
2019-10-08 10:06:17 -07:00
Erik Montnemery c72ac87c73 Fix device condition scaffold () 2019-10-07 20:10:21 -07:00
Erik Montnemery dabdf8b577 Validate generated device triggers ()
* Validate generated trigger

* Update scaffold
2019-10-07 13:09:48 -07:00
Franck Nijhof d4a67e3a30 Update documentation link URL for integrations (part2) () 2019-10-02 09:34:07 -07:00
Paulus Schoutsen 58446c79fc Update scaffold text 2019-09-27 13:08:38 -07:00