Spelling: Config(uration) (#31782)
This commit is contained in:
parent
8356ea2616
commit
0173c61fee
20 changed files with 56 additions and 56 deletions
|
@ -21,7 +21,7 @@
|
||||||
},
|
},
|
||||||
"abort": {
|
"abort": {
|
||||||
"already_configured": "Device is already configured",
|
"already_configured": "Device is already configured",
|
||||||
"bad_config_file": "Bad data from config file",
|
"bad_config_file": "Bad data from configuration file",
|
||||||
"link_local_address": "Link local addresses are not supported",
|
"link_local_address": "Link local addresses are not supported",
|
||||||
"not_axis_device": "Discovered device not an Axis device"
|
"not_axis_device": "Discovered device not an Axis device"
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,7 +112,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
if station is not None:
|
if station is not None:
|
||||||
if zone_id and wmo_id:
|
if zone_id and wmo_id:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"Using config %s, not %s and %s for BOM sensor",
|
"Using configuration %s, not %s and %s for BOM sensor",
|
||||||
CONF_STATION,
|
CONF_STATION,
|
||||||
CONF_ZONE_ID,
|
CONF_ZONE_ID,
|
||||||
CONF_WMO_ID,
|
CONF_WMO_ID,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"domain": "config",
|
"domain": "config",
|
||||||
"name": "Config",
|
"name": "Configuration",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/config",
|
"documentation": "https://www.home-assistant.io/integrations/config",
|
||||||
"requirements": [],
|
"requirements": [],
|
||||||
"dependencies": ["http"],
|
"dependencies": ["http"],
|
||||||
|
|
|
@ -107,7 +107,7 @@ class EcobeeFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
if await self.hass.async_add_executor_job(ecobee.refresh_tokens):
|
if await self.hass.async_add_executor_job(ecobee.refresh_tokens):
|
||||||
# Credentials found and validated; create the entry.
|
# Credentials found and validated; create the entry.
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"Valid ecobee configuration found for import, creating config entry"
|
"Valid ecobee configuration found for import, creating configuration entry"
|
||||||
)
|
)
|
||||||
return self.async_create_entry(
|
return self.async_create_entry(
|
||||||
title=DOMAIN,
|
title=DOMAIN,
|
||||||
|
|
|
@ -91,7 +91,7 @@ def get_from_conf(config, config_key, length):
|
||||||
string = config.get(config_key)
|
string = config.get(config_key)
|
||||||
if len(string) != length:
|
if len(string) != length:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Error in config parameter %s: Must be exactly %d "
|
"Error in configuration parameter %s: Must be exactly %d "
|
||||||
"bytes. Device will not be added",
|
"bytes. Device will not be added",
|
||||||
config_key,
|
config_key,
|
||||||
length / 2,
|
length / 2,
|
||||||
|
|
|
@ -246,7 +246,7 @@ class EmonCmsData:
|
||||||
self.data = req.json()
|
self.data = req.json()
|
||||||
else:
|
else:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Please verify if the specified config value "
|
"Please verify if the specified configuration value "
|
||||||
"'%s' is correct! (HTTP Status_code = %d)",
|
"'%s' is correct! (HTTP Status_code = %d)",
|
||||||
CONF_URL,
|
CONF_URL,
|
||||||
req.status_code,
|
req.status_code,
|
||||||
|
|
|
@ -397,7 +397,7 @@ class HarmonyRemote(remote.RemoteDevice):
|
||||||
def write_config_file(self):
|
def write_config_file(self):
|
||||||
"""Write Harmony configuration file."""
|
"""Write Harmony configuration file."""
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"%s: Writing hub config to file: %s", self.name, self._config_path
|
"%s: Writing hub configuration to file: %s", self.name, self._config_path
|
||||||
)
|
)
|
||||||
if self._client.config is None:
|
if self._client.config is None:
|
||||||
_LOGGER.warning("%s: No configuration received from hub", self.name)
|
_LOGGER.warning("%s: No configuration received from hub", self.name)
|
||||||
|
|
|
@ -262,7 +262,7 @@ class HomekitControllerFlowHandler(config_entries.ConfigFlow):
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
(
|
(
|
||||||
"Legacy configuration %s for homekit"
|
"Legacy configuration %s for homekit"
|
||||||
"accessory migrated to config entries"
|
"accessory migrated to configuration entries"
|
||||||
),
|
),
|
||||||
hkid,
|
hkid,
|
||||||
)
|
)
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
"already_paired": "This accessory is already paired to another device. Please reset the accessory and try again.",
|
"already_paired": "This accessory is already paired to another device. Please reset the accessory and try again.",
|
||||||
"ignored_model": "HomeKit support for this model is blocked as a more feature complete native integration is available.",
|
"ignored_model": "HomeKit support for this model is blocked as a more feature complete native integration is available.",
|
||||||
"already_configured": "Accessory is already configured with this controller.",
|
"already_configured": "Accessory is already configured with this controller.",
|
||||||
"invalid_config_entry": "This device is showing as ready to pair but there is already a conflicting config entry for it in Home Assistant that must first be removed.",
|
"invalid_config_entry": "This device is showing as ready to pair but there is already a conflicting configuration entry for it in Home Assistant that must first be removed.",
|
||||||
"accessory_not_found_error": "Cannot add pairing as device can no longer be found.",
|
"accessory_not_found_error": "Cannot add pairing as device can no longer be found.",
|
||||||
"already_in_progress": "Config flow for device is already in progress."
|
"already_in_progress": "Config flow for device is already in progress."
|
||||||
}
|
}
|
||||||
|
|
|
@ -568,7 +568,7 @@ async def async_setup_entry(hass, entry):
|
||||||
conf = CONFIG_SCHEMA({DOMAIN: entry.data})[DOMAIN]
|
conf = CONFIG_SCHEMA({DOMAIN: entry.data})[DOMAIN]
|
||||||
elif any(key in conf for key in entry.data):
|
elif any(key in conf for key in entry.data):
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"Data in your config entry is going to override your "
|
"Data in your configuration entry is going to override your "
|
||||||
"configuration.yaml: %s",
|
"configuration.yaml: %s",
|
||||||
entry.data,
|
entry.data,
|
||||||
)
|
)
|
||||||
|
|
|
@ -32,7 +32,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"If you do not want to have your printer on <br />"
|
"If you do not want to have your printer on <br />"
|
||||||
" at all times, and you would like to monitor <br /> "
|
" at all times, and you would like to monitor <br /> "
|
||||||
"temperatures, please add <br />"
|
"temperatures, please add <br />"
|
||||||
"bed and/or number_of_tools to your config <br />"
|
"bed and/or number_of_tools to your configuration <br />"
|
||||||
"and restart.",
|
"and restart.",
|
||||||
title=NOTIFICATION_TITLE,
|
title=NOTIFICATION_TITLE,
|
||||||
notification_id=NOTIFICATION_ID,
|
notification_id=NOTIFICATION_ID,
|
||||||
|
|
|
@ -119,8 +119,8 @@ class PandoraMediaPlayer(MediaPlayerDevice):
|
||||||
elif mode == 2:
|
elif mode == 2:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"The pianobar client is not configured to log in. "
|
"The pianobar client is not configured to log in. "
|
||||||
"Please create a config file for it as described at "
|
"Please create a configuration file for it as described at "
|
||||||
"https://home-assistant.io/components/media_player.pandora/"
|
"https://home-assistant.io/integrations/pandora/"
|
||||||
)
|
)
|
||||||
# pass through the email/password prompts to quit cleanly
|
# pass through the email/password prompts to quit cleanly
|
||||||
self._pianobar.sendcontrol("m")
|
self._pianobar.sendcontrol("m")
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
"all_configured": "All linked servers already configured",
|
"all_configured": "All linked servers already configured",
|
||||||
"already_configured": "This Plex server is already configured",
|
"already_configured": "This Plex server is already configured",
|
||||||
"already_in_progress": "Plex is being configured",
|
"already_in_progress": "Plex is being configured",
|
||||||
"discovery_no_file": "No legacy config file found",
|
"discovery_no_file": "No legacy configuration file found",
|
||||||
"invalid_import": "Imported configuration is invalid",
|
"invalid_import": "Imported configuration is invalid",
|
||||||
"non-interactive": "Non-interactive import",
|
"non-interactive": "Non-interactive import",
|
||||||
"token_request_timeout": "Timed out obtaining token",
|
"token_request_timeout": "Timed out obtaining token",
|
||||||
|
|
|
@ -146,7 +146,7 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
|
||||||
except ClientResponseError as ex:
|
except ClientResponseError as ex:
|
||||||
if ex.status in (401, 403):
|
if ex.status in (401, 403):
|
||||||
_LOGGER.exception(
|
_LOGGER.exception(
|
||||||
"Unable to setup config entry '%s' - please reconfigure the integration",
|
"Unable to setup configuration entry '%s' - please reconfigure the integration",
|
||||||
entry.title,
|
entry.title,
|
||||||
)
|
)
|
||||||
remove_entry = True
|
remove_entry = True
|
||||||
|
@ -183,7 +183,7 @@ async def async_get_entry_scenes(entry: ConfigEntry, api):
|
||||||
except ClientResponseError as ex:
|
except ClientResponseError as ex:
|
||||||
if ex.status == 403:
|
if ex.status == 403:
|
||||||
_LOGGER.exception(
|
_LOGGER.exception(
|
||||||
"Unable to load scenes for config entry '%s' because the access token does not have the required access",
|
"Unable to load scenes for configuration entry '%s' because the access token does not have the required access",
|
||||||
entry.title,
|
entry.title,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
@ -230,7 +230,7 @@ async def async_remove_entry(hass: HomeAssistantType, entry: ConfigEntry) -> Non
|
||||||
app_count = sum(1 for entry in all_entries if entry.data[CONF_APP_ID] == app_id)
|
app_count = sum(1 for entry in all_entries if entry.data[CONF_APP_ID] == app_id)
|
||||||
if app_count > 1:
|
if app_count > 1:
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"App %s was not removed because it is in use by other config entries",
|
"App %s was not removed because it is in use by other configuration entries",
|
||||||
app_id,
|
app_id,
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
|
@ -107,7 +107,7 @@ class SonosData:
|
||||||
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||||
"""Set up the Sonos platform. Obsolete."""
|
"""Set up the Sonos platform. Obsolete."""
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Loading Sonos by media_player platform config is no longer supported"
|
"Loading Sonos by media_player platform configuration is no longer supported"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"abort": {
|
"abort": {
|
||||||
"already_setup": "This entry has already been setup.",
|
"already_setup": "This entry has already been setup.",
|
||||||
"already_setup_with_diff_host_and_name": "This entry appears to have already been setup with a different host and name based on its serial number. Please remove any old entries from your configuration.yaml and from the Integrations menu before reattempting to add this device.",
|
"already_setup_with_diff_host_and_name": "This entry appears to have already been setup with a different host and name based on its serial number. Please remove any old entries from your configuration.yaml and from the Integrations menu before reattempting to add this device.",
|
||||||
"updated_entry": "This entry has already been setup but the name and/or options defined in the config do not match the previously imported config so the config entry has been updated accordingly."
|
"updated_entry": "This entry has already been setup but the name and/or options defined in the configuration do not match the previously imported configuration, so the configuration entry has been updated accordingly."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
|
|
|
@ -678,7 +678,7 @@ async def async_setup_entry(hass, config_entry):
|
||||||
if value.type == const.TYPE_BOOL:
|
if value.type == const.TYPE_BOOL:
|
||||||
value.data = int(selection == "True")
|
value.data = int(selection == "True")
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
"Setting config parameter %s on Node %s with bool selection %s",
|
"Setting configuration parameter %s on Node %s with bool selection %s",
|
||||||
param,
|
param,
|
||||||
node_id,
|
node_id,
|
||||||
str(selection),
|
str(selection),
|
||||||
|
@ -687,7 +687,7 @@ async def async_setup_entry(hass, config_entry):
|
||||||
if value.type == const.TYPE_LIST:
|
if value.type == const.TYPE_LIST:
|
||||||
value.data = str(selection)
|
value.data = str(selection)
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
"Setting config parameter %s on Node %s with list selection %s",
|
"Setting configuration parameter %s on Node %s with list selection %s",
|
||||||
param,
|
param,
|
||||||
node_id,
|
node_id,
|
||||||
str(selection),
|
str(selection),
|
||||||
|
@ -697,7 +697,7 @@ async def async_setup_entry(hass, config_entry):
|
||||||
network.manager.pressButton(value.value_id)
|
network.manager.pressButton(value.value_id)
|
||||||
network.manager.releaseButton(value.value_id)
|
network.manager.releaseButton(value.value_id)
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
"Setting config parameter %s on Node %s "
|
"Setting configuration parameter %s on Node %s "
|
||||||
"with button selection %s",
|
"with button selection %s",
|
||||||
param,
|
param,
|
||||||
node_id,
|
node_id,
|
||||||
|
@ -706,7 +706,7 @@ async def async_setup_entry(hass, config_entry):
|
||||||
return
|
return
|
||||||
value.data = int(selection)
|
value.data = int(selection)
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
"Setting config parameter %s on Node %s with selection %s",
|
"Setting configuration parameter %s on Node %s with selection %s",
|
||||||
param,
|
param,
|
||||||
node_id,
|
node_id,
|
||||||
selection,
|
selection,
|
||||||
|
@ -714,7 +714,7 @@ async def async_setup_entry(hass, config_entry):
|
||||||
return
|
return
|
||||||
node.set_config_param(param, selection, size)
|
node.set_config_param(param, selection, size)
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
"Setting unknown config parameter %s on Node %s with selection %s",
|
"Setting unknown configuration parameter %s on Node %s with selection %s",
|
||||||
param,
|
param,
|
||||||
node_id,
|
node_id,
|
||||||
selection,
|
selection,
|
||||||
|
|
|
@ -183,7 +183,7 @@ class ConfigEntry:
|
||||||
component = integration.get_component()
|
component = integration.get_component()
|
||||||
except ImportError as err:
|
except ImportError as err:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Error importing integration %s to set up %s config entry: %s",
|
"Error importing integration %s to set up %s configuration entry: %s",
|
||||||
integration.domain,
|
integration.domain,
|
||||||
self.domain,
|
self.domain,
|
||||||
err,
|
err,
|
||||||
|
@ -197,7 +197,7 @@ class ConfigEntry:
|
||||||
integration.get_platform("config_flow")
|
integration.get_platform("config_flow")
|
||||||
except ImportError as err:
|
except ImportError as err:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Error importing platform config_flow from integration %s to set up %s config entry: %s",
|
"Error importing platform config_flow from integration %s to set up %s configuration entry: %s",
|
||||||
integration.domain,
|
integration.domain,
|
||||||
self.domain,
|
self.domain,
|
||||||
err,
|
err,
|
||||||
|
@ -503,7 +503,7 @@ class ConfigEntriesFlowManager(data_entry_flow.FlowManager):
|
||||||
integration.get_platform("config_flow")
|
integration.get_platform("config_flow")
|
||||||
except ImportError as err:
|
except ImportError as err:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Error occurred loading config flow for integration %s: %s",
|
"Error occurred loading configuration flow for integration %s: %s",
|
||||||
handler_key,
|
handler_key,
|
||||||
err,
|
err,
|
||||||
)
|
)
|
||||||
|
@ -1024,7 +1024,7 @@ class EntityRegistryDisabledHandler:
|
||||||
self.changed = set()
|
self.changed = set()
|
||||||
|
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
"Reloading config entries because disabled_by changed in entity registry: %s",
|
"Reloading configuration entries because disabled_by changed in entity registry: %s",
|
||||||
", ".join(self.changed),
|
", ".join(self.changed),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -541,7 +541,7 @@ def _async_mount_config_dir(hass: "HomeAssistant") -> bool:
|
||||||
Async friendly but not a coroutine.
|
Async friendly but not a coroutine.
|
||||||
"""
|
"""
|
||||||
if hass.config.config_dir is None:
|
if hass.config.config_dir is None:
|
||||||
_LOGGER.error("Can't load integrations - config dir is not set")
|
_LOGGER.error("Can't load integrations - configuration directory is not set")
|
||||||
return False
|
return False
|
||||||
if hass.config.config_dir not in sys.path:
|
if hass.config.config_dir not in sys.path:
|
||||||
sys.path.insert(0, hass.config.config_dir)
|
sys.path.insert(0, hass.config.config_dir)
|
||||||
|
|
|
@ -31,7 +31,7 @@ async def test_auth_manager_from_config_validates_config(mock_hass):
|
||||||
[
|
[
|
||||||
{"name": "Test Name", "type": "insecure_example", "users": []},
|
{"name": "Test Name", "type": "insecure_example", "users": []},
|
||||||
{
|
{
|
||||||
"name": "Invalid config because no users",
|
"name": "Invalid configuration because no users",
|
||||||
"type": "insecure_example",
|
"type": "insecure_example",
|
||||||
"id": "invalid_config",
|
"id": "invalid_config",
|
||||||
},
|
},
|
||||||
|
@ -81,7 +81,7 @@ async def test_auth_manager_from_config_auth_modules(mock_hass):
|
||||||
[
|
[
|
||||||
{"name": "Module 1", "type": "insecure_example", "data": []},
|
{"name": "Module 1", "type": "insecure_example", "data": []},
|
||||||
{
|
{
|
||||||
"name": "Invalid config because no data",
|
"name": "Invalid configuration because no data",
|
||||||
"type": "insecure_example",
|
"type": "insecure_example",
|
||||||
"id": "another",
|
"id": "another",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue