Drop white blacklist pt1 (#37816)
This commit is contained in:
parent
ccbc3b5e39
commit
8ed1a29c82
21 changed files with 73 additions and 50 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue