Drop white blacklist pt1 (#37816)
This commit is contained in:
1 parent
ccbc3b5e39
commit
8ed1a29c82
21 files changed
+73
-50
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user