From b96c5696578b631d7af5e28afb5a3863fd510808 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Sat, 26 Mar 2022 13:52:55 +0100 Subject: [PATCH] Fix review comments for filesize (#68703) --- homeassistant/components/filesize/sensor.py | 7 +++++-- homeassistant/components/filesize/strings.json | 3 ++- homeassistant/components/filesize/translations/en.json | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) 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