* Initial commit * Add error handling to config flow Change unique identifyer to name Clean up hound comments * Ensure hass home zone is created with correct entity id Fix failing tests * Fix rest of tests * Move zone tests to zone folder Create config flow tests * Add possibility to unload entry * Use hass.data instead of globas * Don't calculate configures zones every loop iteration * No need to know about home zone during setup of entry * Only use name as title * Don't cache hass home zone * Add new tests for setup and setup entry * Break out functionality from init to zone.py * Make hass home zone be created directly * Make sure that config flow doesn't override hass home zone * A newline was missing in const * Configured zones shall not be imported Removed config flow import functionality Improved tests
21 lines
No EOL
531 B
JSON
21 lines
No EOL
531 B
JSON
{
|
|
"config": {
|
|
"title": "Zone",
|
|
"step": {
|
|
"init": {
|
|
"title": "Define zone parameters",
|
|
"data": {
|
|
"name": "Name",
|
|
"latitude": "Latitude",
|
|
"longitude": "Longitude",
|
|
"radius": "Radius",
|
|
"passive": "Passive",
|
|
"icon": "Icon"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"name_exists": "Name already exists"
|
|
}
|
|
}
|
|
} |