81ae0ee4517cbd833c0f7aa87eb11dbbada39b84,homeassistant/components/script/__init__.py,,,#,44
Before Change
vol.Optional(CONF_DESCRIPTION, default=""): cv.string,
vol.Optional(CONF_VARIABLES): cv.SCRIPT_VARIABLES_SCHEMA,
vol.Optional(CONF_FIELDS, default={}): {
cv.string: {
vol.Optional(CONF_DESCRIPTION): cv.string,
vol.Optional(CONF_EXAMPLE): cv.string,
}
},
},
SCRIPT_MODE_SINGLE,
)
After Change
CONF_DESCRIPTION = "description"
CONF_EXAMPLE = "example"
CONF_FIELDS = "fields"
CONF_REQUIRED = "required"
ENTITY_ID_FORMAT = DOMAIN + ".{}"
EVENT_SCRIPT_STARTED = "script_started"
SCRIPT_ENTRY_SCHEMA = make_script_schema(
{
vol.Optional(CONF_ALIAS): cv.string,
vol.Optional(CONF_ICON): cv.icon,
vol.Required(CONF_SEQUENCE): cv.SCRIPT_SCHEMA,
vol.Optional(CONF_DESCRIPTION, default=""): cv.string,
vol.Optional(CONF_VARIABLES): cv.SCRIPT_VARIABLES_SCHEMA,
vol.Optional(CONF_FIELDS, default={}): {
cv.string: {
vol.Optional(CONF_ADVANCED, default=False): cv.boolean,
vol.Optional(CONF_DEFAULT): cv.match_all,
vol.Optional(CONF_DESCRIPTION): cv.string,
vol.Optional(CONF_EXAMPLE): cv.string,
vol.Optional(CONF_NAME): cv.string,
vol.Optional(CONF_REQUIRED, default=False): cv.boolean,
vol.Optional(CONF_SELECTOR): validate_selector,
}
},
},
SCRIPT_MODE_SINGLE,
)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: home-assistant/home-assistant
Commit Name: 81ae0ee4517cbd833c0f7aa87eb11dbbada39b84
Time: 2021-03-29
Author: git@frenck.dev
File Name: homeassistant/components/script/__init__.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: fdcf332a8aa809762c993bb41afbb0ecd867928f
Time: 2018-01-15
Author: heiko.thiery@gmail.com
File Name: homeassistant/components/sensor/lacrosse.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 1e92417804ddc8c5ea2eb9a5d857d0a8ce3e25ab
Time: 2017-11-03
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/xiaomi_aqara.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 81ae0ee4517cbd833c0f7aa87eb11dbbada39b84
Time: 2021-03-29
Author: git@frenck.dev
File Name: homeassistant/components/script/__init__.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 8f774e9c531555cdf31d2ff5f955a9e27ad85404
Time: 2017-11-02
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/xiaomi_aqara.py
Class Name:
Method Name: