Drop white blacklist pt1 (#37816)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-07-13 17:43:11 +02:00
1 parent ccbc3b5e39
commit 8ed1a29c82
21 files changed
+73 -50

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
if hass.config.is_allowed_path(file_path):
async_add_entities([FileSensor(name, file_path, unit, value_template)], True)
else:
_LOGGER.error("'%s' is not a whitelisted directory", file_path)
_LOGGER.error("'%s' is not an allowed directory", file_path)
class FileSensor(Entity):