Rename google/tts.py to google_translate/tts.py (#23090)
* Rename google/tts.py to google_translate/tts.py * Move config migration before load config file Migrate default config google tts to google_translate tts * Revert change in process component config * Fix tests
This commit is contained in:
1 parent
ca524233ec
commit
308d1fbba0
13 files changed
+83
-24
No files matched your search
@@ -78,9 +78,6 @@ async def async_from_config_dict(config: Dict[str, Any],
|
||||
"Further initialization aborted")
|
||||
return None
|
||||
|
||||
await hass.async_add_executor_job(
|
||||
conf_util.process_ha_config_upgrade, hass)
|
||||
|
||||
# Make a copy because we are mutating it.
|
||||
config = OrderedDict(config)
|
||||
|
||||
@@ -167,6 +164,9 @@ async def async_from_config_file(config_path: str,
|
||||
async_enable_logging(hass, verbose, log_rotate_days, log_file,
|
||||
log_no_color)
|
||||
|
||||
await hass.async_add_executor_job(
|
||||
conf_util.process_ha_config_upgrade, hass)
|
||||
|
||||
try:
|
||||
config_dict = await hass.async_add_executor_job(
|
||||
conf_util.load_yaml_config_file, config_path)
|
||||
|
||||
Reference in new issue
Block a user