Transition template types from string to platform keys (#149434)

This commit is contained in:
Petro31 2025-07-25 13:55:40 -04:00 committed by GitHub
parent 02eb1dd533
commit a069b59efc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -324,14 +324,14 @@ def validate_user_input(
TEMPLATE_TYPES = [ TEMPLATE_TYPES = [
"alarm_control_panel", Platform.ALARM_CONTROL_PANEL,
"binary_sensor", Platform.BINARY_SENSOR,
"button", Platform.BUTTON,
"image", Platform.IMAGE,
"number", Platform.NUMBER,
"select", Platform.SELECT,
"sensor", Platform.SENSOR,
"switch", Platform.SWITCH,
] ]
CONFIG_FLOW = { CONFIG_FLOW = {