diff --git a/homeassistant/components/filesize/sensor.py b/homeassistant/components/filesize/sensor.py index b08b797aa4b..eeb17d3ebc4 100644 --- a/homeassistant/components/filesize/sensor.py +++ b/homeassistant/components/filesize/sensor.py @@ -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( diff --git a/homeassistant/components/filesize/strings.json b/homeassistant/components/filesize/strings.json index 1096d7c888a..01b4ee655b6 100644 --- a/homeassistant/components/filesize/strings.json +++ b/homeassistant/components/filesize/strings.json @@ -14,5 +14,6 @@ "abort": { "already_configured": "[%key:common::config_flow::abort::already_configured_service%]" } - } + }, + "title": "Filesize" } \ No newline at end of file diff --git a/homeassistant/components/filesize/translations/en.json b/homeassistant/components/filesize/translations/en.json index 76f3b2bbb47..cd8954e5a71 100644 --- a/homeassistant/components/filesize/translations/en.json +++ b/homeassistant/components/filesize/translations/en.json @@ -14,5 +14,6 @@ "abort": { "already_configured": "Filepath is already configured" } - } + }, + "title": "Filesize" } \ No newline at end of file