mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Fix review comments for filesize (#68703)
This commit is contained in:
parent
25bdb5304d
commit
b96c569657
@ -38,8 +38,11 @@ async def async_setup_platform(
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Set up the file size sensor."""
|
"""Set up the file size sensor."""
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
# Filesize config flow added in 2022.4 and should be removed in 2022.8
|
# Filesize config flow added in 2022.4 and should be removed in 2022.6
|
||||||
"Loading filesize via platform setup is deprecated; Please remove it from your configuration"
|
"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]:
|
for path in config[CONF_FILE_PATHS]:
|
||||||
hass.async_create_task(
|
hass.async_create_task(
|
||||||
|
@ -14,5 +14,6 @@
|
|||||||
"abort": {
|
"abort": {
|
||||||
"already_configured": "[%key:common::config_flow::abort::already_configured_service%]"
|
"already_configured": "[%key:common::config_flow::abort::already_configured_service%]"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"title": "Filesize"
|
||||||
}
|
}
|
@ -14,5 +14,6 @@
|
|||||||
"abort": {
|
"abort": {
|
||||||
"already_configured": "Filepath is already configured"
|
"already_configured": "Filepath is already configured"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"title": "Filesize"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user