def is_ignored(hass, name):
 for prefix in hass.data['litejet_config'].get(CONF_EXCLUDE_NAMES, []):
  if name.startswith(prefix):
   return True
 return False

def is_ignored ( hass , name ) : for prefix in hass . data [ 'litejet_config' ] . get ( CONF_EXCLUDE_NAMES , [ ] ) : if name . startswith ( prefix ) : return True return False
helper function to check if the given path should be ignored or not .