- CONF_SCHEMA = {'properties':
- {'init': {'type': 'string'},
- 'states':
- {'type': 'object',
- 'patternProperties':
- {'^[A-Za-z ]+$':
- {'type': 'object',
- 'properties':
- {'entry':
- {'type': 'array', 'items': {'type': 'object'}},
- 'exit':
- {'type': 'array', 'items': {'type': 'object'}},
- 'commands':
- {'type': 'array', 'items': {'type': 'object'}},
- 'transitions':
- {'type': 'array',
- 'items':
- {'type': 'object',
- 'properties':
- {'trigger': {'type': 'object'},
- 'to': {'type': 'string'}},
- 'required': ['trigger', 'to']}}},
- 'required': ['commands', 'transitions']}},
- 'additionalProperties': False}},
- 'required': ['init', 'states']}
+ CONF_SCHEMA = {
+ "properties": {
+ "init": {"type": "string"},
+ "states": {
+ "type": "object",
+ "patternProperties": {
+ "^[A-Za-z ]+$": {
+ "type": "object",
+ "properties": {
+ "entry": {"type": "array", "items": {"type": "object"}},
+ "exit": {"type": "array", "items": {"type": "object"}},
+ "commands": {"type": "array", "items": {"type": "object"}},
+ "transitions": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "trigger": {"type": "object"},
+ "to": {"type": "string"},
+ },
+ "required": ["trigger", "to"],
+ },
+ },
+ },
+ "required": ["commands", "transitions"],
+ }
+ },
+ "additionalProperties": False,
+ },
+ },
+ "required": ["init", "states"],
+ }