G Johansson
61c17291fb
Move TemplateEntity to template ( #98957 )
...
* Move TemplateEntity to template
* Rename template_entity in helpers
2023-08-24 15:37:04 +02:00
Ville Skyttä
2399cd283a
Python 3.10 support cleanups ( #98640 )
2023-08-21 19:14:07 +02:00
G Johansson
207e3f90a6
Modernize template weather ( #98064 )
...
* Modernize template weather
* mods
* adds templates
* Fixes
* review comments
* more comments
* Fix validator
* Tests
* Mods
* Fix ruff
2023-08-21 15:48:14 +02:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma ( #98162 )
2023-08-10 14:27:03 +02:00
Erik Montnemery
96c71b214f
Check supported features in calls to vacuum services ( #95833 )
...
* Check supported features in vacuum services
* Update tests
* Add comment
2023-07-10 13:05:47 +02:00
Erik Montnemery
68db751ce1
Refactor template image ( #95353 )
2023-06-27 18:46:36 +02:00
Erik Montnemery
17ac1a6d32
Set automations which fail validation unavailable ( #94856 )
2023-06-27 18:23:33 +02:00
G Johansson
30d22fe49b
Add new attributes into Template Weather ( #95100 )
2023-06-27 11:19:51 +02:00
Erik Montnemery
8e2ba81995
Add image platform to the template integration ( #94928 )
...
* Add image platform to the template integration
* Set a default name
* Fix typo
* Add tests
* Improve test coverage
* Derive content-type from fetched image
2023-06-26 15:54:51 +02:00
G Johansson
6ad4e13b38
Manual trigger entity and refactor command_line switch ( #91506 )
...
* TriggerEntity to CoordinatorTriggerEntity
* _render_templates
* split manual vs coordinator
* name
* ManualTriggerEntity
* value
* Remove ManualTriggerEntity
* ManualTriggerEntity
* process_manual_data
* Add test
* imports
* Move ManualTriggerEntity
* cmd_line switch
* Review comments
* Fix templating
* Review comments
* Remove unneeded logging
2023-05-08 10:19:37 +02:00
Jan Bouwhuis
722b991234
Support unknown state, position or tilt for template cover ( #91172 )
...
* Support unknown state for template cover
* Remove not related changes
2023-04-12 21:23:24 +02:00
epenet
ff8b91aeea
Add freezer to known test fixtures in pylint ( #89825 )
...
Add freezer to known fixtures in pylint
2023-03-16 22:39:41 -04:00
epenet
a0f725dfcb
Add type hints to tests ( #89497 )
2023-03-10 12:06:50 +01:00
epenet
9762b684c2
Adjust entity registry access in tests (3) ( #88964 )
2023-03-01 16:04:40 +01:00
Erik Montnemery
7bfc7f134c
Reset state of template cover on error ( #88915 )
2023-02-28 12:06:40 -05:00
Yann Le Moigne
2314d15761
Fix cover template: optimistic mode is ignored ( #87925 )
...
* Fix cover template: optimistic mode is ignored (#84334 )
* Fix invalid check in is_closed (make test pass)
* Add test for non optimistic cover
* Update homeassistant/components/template/cover.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update test_cover.py
* Fix format
* Fix tests
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-22 15:54:18 +01:00
epenet
88cfbf6a34
Add type hints to integration tests (part 22) ( #88234 )
2023-02-16 14:08:03 +01:00
Franck Nijhof
d3ed8de232
Update Ruff to v0.0.247 ( #88210 )
...
* Update Ruff to v0.0.247
* Fix new found violations
2023-02-15 16:46:03 -05:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
278050a73f
Add type hints to integration tests (t-z) ( #87707 )
2023-02-08 19:10:53 +01:00
Franck Nijhof
ef800335fb
Enable Ruff PT022 ( #86792 )
...
* Enable Ruff PT022
* Adjust found cases
2023-01-27 13:57:06 +01:00
Franck Nijhof
e50a531cd9
Code styling tweaks to the tests - Part 2 ( #86662 )
...
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2023-01-26 01:23:53 +01:00
epenet
1a8933d59d
Adjust invalid test values in template ( #86008 )
2023-01-16 14:42:47 +01:00
Franck Nijhof
2e92fefc0a
Fix uom/device class mismatches in tests ( #84372 )
2022-12-21 22:47:59 +01:00
Petro31
f3007b22c4
Allow setting set_percentage and set_preset_mode of template fan without turning on ( #75656 )
...
* decouple set_percentage and set_preset_mode from entity state
* correct set_percent self._state logic
* Add tests
* remove _VALUD_STATES
* decouple percent and preset_mode
2022-10-03 20:22:05 +02:00
epenet
0ac581a0b1
Cleanup EntityFeature in tests ( #78859 )
2022-09-21 10:48:55 +02:00
epenet
7bc2712142
Adjust root-import in tests ( #78761 )
...
* Adjust root-import in tests
* Adjust diagnostics
* Adjust button
* Adjust select
* Adjust device_tracker
* Adjust camera
* Adjust humidifier
* Adjust media_source
* Adjust update
* Adjust siren
* Adjust number
* Adjust alarm_control_panel
* Adjust notify
* Adjust sensor
* Adjust switch
* Revert anthemav
* Don't adjust demo humidifier
2022-09-19 15:22:23 +02:00
Erik Montnemery
c134bcc536
Remove use of deprecated SUPPORT_* constants from Template light ( #77836 )
2022-09-08 11:22:38 +02:00
Erik Montnemery
60c8d95a77
Remove white_value support from light ( #76926 )
2022-08-18 08:21:05 -04:00
Erik Montnemery
426a620084
Remove deprecated white_value support from template light ( #76923 )
2022-08-17 07:53:56 -04:00
Kostas Chatzikokolakis
3f53ed5d5c
Add trigger/arm_custom_bypass to Template Alarm Control Panel ( #74629 )
2022-07-07 20:31:03 +02:00
mbo18
24d2d62121
Add vacation mode to Template Alarm Control Panel ( #74261 )
2022-06-30 12:22:03 -07:00
akloeckner
aa314a0901
Add this variable to trigger-based templates ( #72437 )
...
add this variables to trigger-based templates
follow-up for https://github.com/home-assistant/core/issues/70359
2022-06-27 08:59:29 +02:00
Erik Montnemery
4885331509
Fail template functions when no default specified ( #71687 )
2022-05-13 09:46:49 -07:00
Erik Montnemery
83080dbba8
Support this variable in template cover actions ( #71793 )
2022-05-13 09:34:00 -07:00
Erik Montnemery
a17fa6d6d5
Support this variable in template fan actions ( #71795 )
2022-05-13 09:33:44 -07:00
Erik Montnemery
8b412acc98
Support this variable in template lock actions ( #71796 )
2022-05-13 09:33:25 -07:00
Erik Montnemery
66ec4564f4
Support this variable in template number actions ( #71797 )
2022-05-13 09:33:00 -07:00
Erik Montnemery
adde9130a1
Support this variable in template select actions ( #71798 )
2022-05-13 09:32:45 -07:00
Erik Montnemery
6f7a465347
Support this variable in template vacuum actions ( #71800 )
2022-05-13 09:32:19 -07:00
Erik Montnemery
9eca91afc9
Support this variable in template light actions ( #71805 )
2022-05-13 09:31:37 -07:00
Erik Montnemery
042321be60
Support this variable in template button actions ( #71792 )
2022-05-13 17:28:36 +02:00
Erik Montnemery
184421dae6
Support this variable in template switch actions ( #71799 )
2022-05-13 16:44:27 +02:00
Erik Montnemery
6cff2f8571
Tweak template light tests ( #71729 )
2022-05-13 12:22:34 +02:00
Erik Montnemery
dba2f5ab1c
Support this variable in template alarm actions ( #71744 )
2022-05-13 12:17:40 +02:00
Erik Montnemery
3332c853c4
Remove prints from template tests ( #71746 )
2022-05-12 18:34:26 +02:00
Erik Montnemery
11cc1feb85
Tweak template switch tests ( #71738 )
2022-05-12 17:08:21 +02:00
Erik Montnemery
35e4f11e0b
Tweak template lock tests ( #71734 )
2022-05-12 16:29:48 +02:00
Erik Montnemery
b70e97e949
Remove unused calls fixture from template tests ( #71735 )
2022-05-12 16:04:01 +02:00
Erik Montnemery
1ef3800844
Tweak template cover tests ( #71732 )
2022-05-12 15:22:57 +02:00