Fix review comments for filesize (#68703)

This commit is contained in:
G Johansson 2022-03-26 13:52:55 +01:00 committed by GitHub
parent 25bdb5304d
commit b96c569657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View File

@ -38,8 +38,11 @@ async def async_setup_platform(
) -> None:
"""Set up the file size sensor."""
_LOGGER.warning(
# Filesize config flow added in 2022.4 and should be removed in 2022.8
"Loading filesize via platform setup is deprecated; Please remove it from your configuration"
# Filesize config flow added in 2022.4 and should be removed in 2022.6
"Configuration of the Filesize sensor platform in YAML is deprecated and "
"will be removed in Home Assistant 2022.6; Your existing configuration "
"has been imported into the UI automatically and can be safely removed "
"from your configuration.yaml file"
)
for path in config[CONF_FILE_PATHS]:
hass.async_create_task(

View File

@ -14,5 +14,6 @@
"abort": {
"already_configured": "[%key:common::config_flow::abort::already_configured_service%]"
}
}
},
"title": "Filesize"
}

View File

@ -14,5 +14,6 @@
"abort": {
"already_configured": "Filepath is already configured"
}
}
},
"title": "Filesize"
}