Commit graph

40 commits

Author SHA1 Message Date
Jan Bouwhuis
861bb48ab6
Assign specific error code for HomeAssistantError on websocket_api connection exceptions ()
Assign specific error code for HomeAssistantError
2023-11-29 13:07:52 +01:00
Paulus Schoutsen
1cfbdd6a5d
Allow overriding blueprints on import ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-25 11:49:50 +01:00
Franck Nijhof
4b9bfe9a50
Support importing Blueprints from the Home Assistant websites ()
* Support importing Blueprints from the Home Assistant websites

* Improve test coverage
2023-06-27 12:40:53 -04:00
Jan Bouwhuis
ec98e22330
Add type hints for stub_blueprint_populate fixture ()
Add typehints for stub_blueprint_populate fixture
2023-05-26 08:13:13 +02:00
Erik Montnemery
3cca338c6e
Improve blueprint test fixtures () 2023-05-25 13:45:19 +02:00
Paulus Schoutsen
3f32c5d2ad
Yaml use dict ()
* Use built-in dict instead of OrderedDict

* Use dict instead of OrderedDict in YAML
2023-03-01 12:29:57 -05:00
Paul Bottein
e95944bf9f
Add filter options to entity and device selectors ()
* Add support for multiple device classes

* Add support for entity filter selector

* Add support for device filter selector

* Apply suggestions

* Fix wrong property name

* Update snapshot

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-02-27 10:38:18 -05:00
Paulus Schoutsen
2dcc2f88cc
Use snapshots in blueprint import tests () 2023-02-27 09:57:26 -05:00
epenet
0cf5e9fb4a
Add type hints to integration tests (part 2) ()
* Add type hints to integration tests (part 2)

* typo

* Improve analytics

* Improve automation

* Imrpove bluetooth
2023-02-10 16:05:26 +01:00
epenet
807c69f621
Add type hints to integration tests (b-c) () 2023-02-08 18:08:43 +01:00
epenet
4142f0d15d
Add return type to tests without arguments ()
* Add return type to tests without arguments

* Black

* Cancel fixture amends
2023-02-07 14:20:06 +01:00
Franck Nijhof
57cf11f067
Enable Ruff PT015 () 2023-01-27 11:10:29 +01:00
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 () 2023-01-20 13:52:46 +01:00
Erik Montnemery
284893d942
Fix reload of automation and scripts when blueprint changed () 2022-10-14 16:43:09 +02:00
Erik Montnemery
2ba0f42acc
Prevent deleting blueprints which are in use () 2022-09-14 16:47:08 +02:00
J. Nick Koston
034c0c0593
Improve YAML Dump times with C Dumper () 2022-06-13 13:14:30 -07:00
Paulus Schoutsen
b1a04302b5
Stringify enums in selectors () 2022-05-06 11:25:01 -07:00
Paulus Schoutsen
353cc0b8c2
Fix importing blueprints ()
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-05-05 14:33:17 -07:00
epenet
053c4428a9
Prettify json (component test fixtures) () 2022-03-30 11:37:17 +02:00
Erik Montnemery
4e7d4db7ae
Align selectors with frontend updates ()
* Align selectors with frontend updates

* Drop metadata from MediaSelector selection

* Adjust blueprint tests

* Address review comments

* Add tests for new selectors

* Don't stringify input

* Require min+max for number selector in slider mode

* vol.Schema does not like static methods

* Tweak
2022-03-10 16:17:59 +01:00
Richard T. Schaefer
15580281a3
Allow area, device, and entity selectors to optionally support multiple selections like target selector ()
* Allow area, device, and entity selectors to optionally support multiple selections like target selector

* Update according to code review comments

* Adjust tests

* Update according to review comments

* Tweak error message for multiple entities

Co-authored-by: Erik <erik@montnemery.com>
2022-03-03 10:35:06 +01:00
Franck Nijhof
fa09cf663e
Update black to 22.1.0 () 2022-02-05 14:19:37 +01:00
Josh Soref
80b367b446
spelling: components/blueprint ()
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-01-17 15:10:12 +01:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 () 2021-11-01 20:47:05 -07:00
Paulus Schoutsen
f51e1fcb67
Check for uncaught service not found exceptions () 2021-11-01 14:33:09 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Bram Kragten
0da312b6f1
Fix importing blueprint from community () 2020-12-10 16:45:57 +01:00
Paulus Schoutsen
d9a86c1145
Fix importing blueprints from forums with HTML entities () 2020-12-10 11:11:49 +01:00
Paulus Schoutsen
ac2af69d26
Fix extracting entity and device IDs from scripts ()
* Fix extracting entity and device IDs from scripts

* Fix extracting from data_template
2020-12-08 13:06:29 +01:00
Paulus Schoutsen
1c9c99571e
Use !input instead of !placeholder ()
* Use !input instead of !placeholder

* Update input name

* Lint

* Move tests around
2020-12-01 18:21:36 +01:00
Paulus Schoutsen
cb96bd9d0b
Blueprint config to override blueprint () 2020-11-28 13:19:58 +01:00
Paulus Schoutsen
e1de36fda8
Fix check config () 2020-11-26 22:25:21 +01:00
Paulus Schoutsen
39efbcb815
Allow importing gist () 2020-11-26 16:00:50 +01:00
Paulus Schoutsen
eb3e5cf446
Suggest folder when importing blueprint and store source_url () 2020-11-26 11:46:59 +01:00
Bram Kragten
8533d9cae0
Add default to inputs () 2020-11-25 20:05:43 +01:00
Paulus Schoutsen
b3be708db6
Add default config if not there ()
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-25 15:10:04 +01:00
Paulus Schoutsen
dc5f7aedd7
Verify that we register blueprints on automation setup () 2020-11-20 15:57:57 +01:00
Paulus Schoutsen
43ba053030
Add support for checking minimum HA version () 2020-11-20 15:24:42 +01:00
Bram Kragten
1c7080d5c5
Add save and delete WS commands to blueprints ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-11 23:32:46 +01:00
Paulus Schoutsen
0fb587727c
Add initial blueprint support ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2020-11-02 15:00:13 +01:00