core/homeassistant/components/template
chammp 52379ad7cb
Add code_format_template to template locks (#106947)
* Add code_format to template locks

* Replace code_format with code_format_template

* Add test case for template eval to None

* Apply suggestion to not call super()

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Add more negative tests

* Handle template render errors

* Better error message

* Add custom test lock config for code format

* Add type hints from upstream

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2024-06-10 16:54:17 +02:00
..
__init__.py
alarm_control_panel.py
binary_sensor.py
button.py
config.py
config_flow.py
const.py
coordinator.py
cover.py
fan.py
icons.json
image.py
light.py
lock.py
manifest.json
number.py
select.py
sensor.py
services.yaml
strings.json
switch.py
template_entity.py
trigger.py
trigger_entity.py
vacuum.py
weather.py